python turtle animation (9)


import turtle as t
import colorsys as c
t.setup(1537,865)
t.tracer(100)
t.bgcolor('black')
p=0
for i in range(600):
    t.width(40)
    p+=0.01
    color=c.hsv_to_rgb(p,1,1)
    t.pencolor(color)
    t.fd(i)
    t.rt(120)
    t.fd(i)
    t.rt(60)
    t.begin_fill()
    t.fd(i)
    t.lt(30)
    t.fd(i)
    t.circle(i,61)
    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