Skip to content

Commit 00a8e64

Browse files
committed
flowerpattern changes
1 parent 8dd8305 commit 00a8e64

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Recursion Visulaizer/recursionVisualizer.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,29 @@ def tree(i):
99
else:
1010
t.forward(i)
1111
t.left(10)
12+
t.right(5)
13+
t.left(2.5)
1214
tree(3*i/4)
1315
t.right(20)
1416
tree(3*i/4)
1517
t.left(10)
18+
t.right(5)
19+
t.left(2.5)
1620
t.backward(i)
1721

22+
tree(40)
23+
tree(25)
24+
tree(30)
25+
tree(46)
26+
tree(38)
27+
tree(76)
1828
tree(90)
29+
tree(35)
30+
tree(40)
31+
tree(18)
32+
tree(36)
33+
tree(5)
34+
tree(10)
35+
tree(15)
36+
tree(30)
1937
turtle.done()

0 commit comments

Comments
 (0)