diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-04-23 18:49:34 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-04-23 18:49:34 +0000 |
| commit | d196a0bcb3eab91a279f51313fe6ff070082f2b1 (patch) | |
| tree | 7dbdf9e9bea0505906c44952dd86dbd02528ea6a | |
| parent | Doc updates (diff) | |
| download | inkscape-d196a0bcb3eab91a279f51313fe6ff070082f2b1.tar.gz inkscape-d196a0bcb3eab91a279f51313fe6ff070082f2b1.zip | |
patch 1705190
(bzr r2950)
| -rw-r--r-- | share/extensions/spirograph.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/share/extensions/spirograph.py b/share/extensions/spirograph.py index 19b7ab870..82b83a31b 100644 --- a/share/extensions/spirograph.py +++ b/share/extensions/spirograph.py @@ -39,7 +39,7 @@ class Spirograph(inkex.Effect): 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", @@ -64,13 +64,10 @@ class Spirograph(inkex.Effect): 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 = '' |
