Skip to content

Commit c01f7ac

Browse files
committed
Mag field
1 parent 55bfcc3 commit c01f7ac

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

Recursion Visulaizer/Magfield.PNG

12.1 KB
Loading
-7.75 KB
Binary file not shown.
Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import turtle
22
t = turtle.Turtle()
33
t.left(90)
4-
t.speed(200)
4+
t.speed(100)
55

66
def tree(i):
77
if i<10:
@@ -11,22 +11,16 @@ def tree(i):
1111
t.left(10)
1212
t.right(5)
1313
t.left(2.5)
14-
t.backward(10)
14+
t.backward(20)
1515
tree(3*i/4)
1616
t.right(20)
1717
tree(3*i/4)
1818
t.left(10)
1919
t.right(5)
2020
t.left(2.5)
21-
t.forward(10)
21+
t.forward(15)
2222
t.backward(i)
23-
2423
tree(40)
25-
tree(35)
2624
tree(30)
27-
tree(25)
28-
tree(20)
29-
tree(25)
30-
tree(35)
3125
tree(40)
3226
turtle.done()

0 commit comments

Comments
 (0)