python turtle animation 12


import turtle as t
import colorsys as c
t.setup(1537,865)
t.tracer(60)
t.bgcolor('black')
t.width(2)
q=0
for i in range(500):
        q+=0.01
        color=c.hsv_to_rgb(q,1,1)
        t.pencolor('black')
        t.fillcolor(color)
        t.fd(i)
        t.rt(180)
        t.fd(i)
        t.rt(90)
        t.begin_fill()
        t.fd(i)
        t.rt(60)
        t.fd(i)
        t.circle(i,270)
        t.fd(i)
        t.rt(121)
        t.end_fill()
t.done()





Subscribe to subhanker codes

Comments

Popular posts from this blog

python turtle animation 16

python turtle animation 11

free fire logo || python turtle graphics code