python turtle animation (1)
import turtle as t
import colorsys as c
t.tracer(200)
t.width(40)
t.setup(1537,865)
t.bgcolor('black')
t.setpos(-100,-100)
q=0
for i in range(2000):
q+=0.01
color=c.hsv_to_rgb(q,1,1)
t.pencolor(color)
t.fd(i)
t.circle(90,120)
t.fd(i)
t.circle(i,120)
t.done()
Comments
Post a Comment