Skip to content

Commit a4153a4

Browse files
authored
Add files via upload
1 parent 0c3e858 commit a4153a4

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

Third/third.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
from turtle import *
2+
import colorsys
3+
speed(8)
4+
hideturtle()
5+
bgcolor('black')
6+
tracer(5)
7+
width(2)
8+
h=0.001
9+
10+
for i in range(100):
11+
color(colorsys.hsv_to_rgb(h,1,1))
12+
forward(100)
13+
left(60)
14+
forward(100)
15+
right(120)
16+
circle(50)
17+
left(240)
18+
forward(100)
19+
h+=0.02
20+
color(colorsys.hsv_to_rgb(h,1,1))
21+
forward(100)
22+
right(60)
23+
forward(100)
24+
left(120)
25+
circle(-50)
26+
right(240)
27+
forward(100)
28+
right(60)
29+
forward(100)
30+
right(60)
31+
forward(100)
32+
left(2)
33+
h+=0.02
34+
35+
done()

0 commit comments

Comments
 (0)