-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathctd 3.py
52 lines (52 loc) · 866 Bytes
/
ctd 3.py
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
52
from turtle import *
speed(0)
bgcolor("black")
colors=["red","orange","yellow","green","blue","purple"]
penup()
goto(-200,150)
pendown()
for i in range(25):
pencolor(colors[i%6])
pensize(5)
circle(50)
left(20)
penup()
goto(200,150)
pendown()
for j in range(40):
pencolor(colors[j%6])
pensize(3)
left(10)
forward(70)
left(90)
forward(70)
left(90)
forward(70)
left(90)
forward(70)
left(90)
penup()
goto(-200,-150)
pendown()
for k in range(35):
pencolor(colors[k%6])
pensize(3)
left(10)
forward(100)
dot()
left(120)
forward(100)
dot()
left(120)
forward(100)
dot()
left(120)
penup()
goto(200,-150)
pendown()
for l in range(150):
pencolor(colors[l%6])
pensize(l/100 +1)
forward(l)
left(61)
done()