Python Turtle Graphic Design #3
Source code:
import turtle as t
import colorsys as cs
t.setup(640,640)
t.tracer(100)
t.bgcolor('black')
t.pensize(2)
for i in range(360):
t.pencolor(cs.hls_to_rgb(i/9,1-i/360,0))
t.circle(i,60)
t.rt(40)
t.pencolor(cs.hls_to_rgb(i/9,0.5,1))
t.fd(i/4)
t.rt(180)
t.fd(i)
t.done()
No comments:
Post a Comment