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

Popular posts from this blog

free fire logo || python turtle graphics code

python turtle animation 15

python turtle animation (3)