summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d2370d3)
raw | patch | inline | side by side (parent: d2370d3)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 23 Apr 2007 18:49:34 +0000 (18:49 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 23 Apr 2007 18:49:34 +0000 (18:49 +0000) |
share/extensions/spirograph.py | patch | blob | history |
index 19b7ab870dde664d65809f31a436bb4a6104f4a2..82b83a31b0f003f99e4f583bc908b1054b2e508d 100644 (file)
help="Selects whether the gear is inside or outside the ring")
self.OptionParser.add_option("-a", "--rotation",
action="store", type="float",
- dest="rotation", default=100.0,
+ dest="rotation", default=0.0,
help="The number of degrees to rotate the image by")
self.OptionParser.add_option("-q", "--quality",
action="store", type="int",
return
scale = 2 * math.pi / (ratio * self.options.quality)
- rotation = 2 * math.pi * self.options.rotation / 180;
+ rotation = - math.pi * self.options.rotation / 180;
new = self.document.createElement('svg:path')
- s = {'stroke-linejoin': 'miter', 'stroke-width': '1.0px',
- 'stroke-opacity': '1.0', 'fill-opacity': '1.0',
- 'stroke': '#000000', 'stroke-linecap': 'butt',
- 'fill': 'none'}
+ s = { 'stroke': '#000000', 'fill': 'none' }
new.setAttribute('style', simplestyle.formatStyle(s))
pathString = ''