Skip to content

Commit 2d74a81

Browse files
authored
Create AD2.py
1 parent 8390776 commit 2d74a81

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 2 in Python turtle
2+
import colorsys as cs
3+
from turtle import *
4+
5+
speed(0)
6+
bgcolor('black')
7+
pensize(2)
8+
hideturtle()
9+
10+
hue = 0.0
11+
12+
for i in range(18):
13+
for x in range(28):
14+
colors = cs.hsv_to_rgb(hue,1,1)
15+
color(colors)
16+
hue +=0.005
17+
rt(90)
18+
circle(170-x*6,90)
19+
lt(90)
20+
circle(170-x*6,90)
21+
rt(180)
22+
circle(50,20)
23+
done()

0 commit comments

Comments
 (0)