-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanimation.py
More file actions
54 lines (44 loc) · 770 Bytes
/
animation.py
File metadata and controls
54 lines (44 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import turtle #Outside_In
loadWindow = turtle.Screen()
turtle.screensize(canvwidth=1100, canvheight=1100, bg=None)
turtle.speed(1)
t = turtle.Turtle()
y = 0; x = -500
t.pendown
mx = 1
if(mx == 1):
for i in range(4):
t.forward(100)
t.right(90)
for i in range(4):
t.forward(200)
t.right(90)
t.forward(100)
t.right(90)
t.forward(100)
t.right(90)
t.forward(100)
t.right(90)
mx = 2
if(mx ==2):
t.penup
t.setposition(-300,300)
t.pendown
t.circle(50)
t.penup()
t.setposition(-320, 100)
t.pendown()
t.circle(50)
t.penup()
t.setposition(-320,-100)
t.pendown()
t.circle(50)
t.penup()
t.setposition(-300, 200)
t.pendown()
t.circle(50)
t.penup()
t.setposition(-280, -200)
t.pendown()
t.circle(50)
turtle.mainloop()