Python Turtle Graphics Design #2
Source code:
import turtle as t
import colorsys as cs
t.setup(500,500)
t.bgcolor('black')
t.tracer(50)
for i in range(360):
c = cs.hls_to_rgb(i/180,0.5,i/360)
t.pencolor(c)
t.fd(i/2)
t.rt(35)
t.circle(i/2,45)
t.lt(95)
t.hideturtle()
t.done()
No comments:
Post a Comment