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

Popular posts from this blog

python turtle animation 16

python turtle animation 11

free fire logo || python turtle graphics code