python turtle pattern 1


import turtle as t
import colorsys as c
t.setup(1537,865)
t.width(2)
t.tracer(20)
t.setpos(60,100)
t.bgcolor('black')
q=0
for i in range(2000):
    color=c.hsv_to_rgb(q,1,1)
    q+=0.09
    t.fillcolor(color)
    t.begin_fill()
    t.fd(i)
    t.rt(120)
    t.fd(i)
    t.rt(60)
    t.fd(i)
    t.circle(i,120)
    t.fd(90)
    t.end_fill()
t.done()

Comments

Popular posts from this blog

python turtle animation 16

python turtle animation 15

python turtle animation 12