python turtle animation 14


import turtle as t
import colorsys as c
q=0
t.tracer(200)
t.setup(1537,865)
t.bgcolor('black')
t.width(10)
for i in range(600):
    q+=0.01
    color=c.hsv_to_rgb(q,1,1)
    t.pencolor('black')
    t.fillcolor(color)
    t.begin_fill()
    t.fd(i)
    t.rt(120)
    t.circle(i,120)
    t.fd(i)
    t.lt(120)
    t.bk(i)
    t.circle(i,121)
    t.end_fill()
t.done()






Subscribe to subhanker codes

Comments

Popular posts from this blog

python turtle animation 16

python turtle animation 15

python turtle animation 12