Skip to content

Commit d123ad3

Browse files
authored
Create AD116.py
1 parent 53aa362 commit d123ad3

File tree

1 file changed

+23
-0
lines changed
  • Awesome Design Collection in Python

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#awesome design 116 in Pytohn
2+
from turtle import *
3+
import colorsys
4+
bgcolor("black")
5+
h = 0
6+
speed(0)
7+
c = colorsys.hsv_to_rgb(h,0.8,1)
8+
shape("circle")
9+
pencolor("blue")
10+
pensize(4)
11+
up()
12+
goto(0,0)
13+
down()
14+
for i in range(800):
15+
c = colorsys.hsv_to_rgb(h,0.8,1)
16+
pencolor(c)
17+
circle(i,100)
18+
rt(91)
19+
circle(i,-100)
20+
h += 0.005
21+
22+
ht()
23+
done()

0 commit comments

Comments
 (0)