fix bug in fibonacci pattern
This commit is contained in:
parent
ef51a90dda
commit
34d058deb3
@ -72,15 +72,15 @@ class FibonacciPattern(inkex.EffectExtension):
|
|||||||
pars.add_argument("-s", "--SpreadFactor",type=int, default="10", help="This will create a larger spread between the nodes from the center.")
|
pars.add_argument("-s", "--SpreadFactor",type=int, default="10", help="This will create a larger spread between the nodes from the center.")
|
||||||
|
|
||||||
def effect(self):
|
def effect(self):
|
||||||
# Foreach Node
|
|
||||||
|
group = self.document.getroot().add(inkex.Group(id="fibonacci-pattern-" + self.svg.get_unique_id("")))
|
||||||
for k in range(1,self.options.NumberOfNodes):
|
for k in range(1,self.options.NumberOfNodes):
|
||||||
# Draw the circle
|
|
||||||
drawKthCircle(k,
|
drawKthCircle(k,
|
||||||
self.options.FirstRadius,
|
self.options.FirstRadius,
|
||||||
self.options.LastRadius,
|
self.options.LastRadius,
|
||||||
self.options.NumberOfNodes,
|
self.options.NumberOfNodes,
|
||||||
self.options.SpreadFactor,
|
self.options.SpreadFactor,
|
||||||
self.svg.get_current_layer())
|
group)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
FibonacciPattern().run()
|
FibonacciPattern().run()
|
Loading…
x
Reference in New Issue
Block a user