animation
import turtle as t
import colorsys as c
t.tracer(20)
t.bgcolor('black')
t.width(5)
r=0.0
t.setup(1537,865)
for i in range(2000):
r+=0.01
color=c.hsv_to_rgb(r,1,1)
t.fillcolor(color)
t.begin_fill()
t.fd(i)
t.rt(90)
t.fd(i)
t.stamp()
t.dot(20,color)
t.fd(i)
t.rt(180)
t.end_fill()
t.done()
Comments
Post a Comment