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.")
|
||||
|
||||
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):
|
||||
# Draw the circle
|
||||
drawKthCircle(k,
|
||||
self.options.FirstRadius,
|
||||
self.options.LastRadius,
|
||||
self.options.NumberOfNodes,
|
||||
self.options.SpreadFactor,
|
||||
self.svg.get_current_layer())
|
||||
group)
|
||||
|
||||
if __name__ == '__main__':
|
||||
FibonacciPattern().run()
|
Loading…
Reference in New Issue
Block a user