Skip to content

Commit 4e335cf

Browse files
committed
fence gen sample1
1 parent de4bf47 commit 4e335cf

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Recursion Visulaizer/fencedmesh.PNG

329 KB
Loading

Recursion Visulaizer/recursionVisualizer.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ def tree(i):
2121
tree(i/2)
2222
t.backward(num/5)
2323
tree(i/10)
24-
tree(num)
24+
tree(random.randint(1,num))
25+
tree(random.randint(1,num/2))
26+
tree(random.randint(1,num/3))
27+
tree(random.randint(1,num/2))
28+
tree(random.randint(1,num))
2529
t.forward(num/5)
2630
t.right(2)
2731
tree(3*i/4)
@@ -57,6 +61,6 @@ def fractal(i):
5761
cycle(random.randint(1,i-2))
5862
print('fractal execution complete')
5963

60-
fractal(random.randint(1,10000))
64+
fractal(random.randint(1,20000))
6165
print('Execution complete')
6266
turtle.done()

Recursion Visulaizer/wired.PNG

-142 KB
Binary file not shown.

0 commit comments

Comments
 (0)