animation


import turtle as t
t.bgcolor('black')
t.tracer(20)
t.setup(1537,865)
t.width(3)
color=('red','cyan','blue','green','gold','white')
for i in range(2000):
    t.pencolor('black')
    t.fillcolor(color[i%6])
    t.begin_fill()
    t.fd(i)
    t.rt(90)
    t.fd(i)
    t.circle(20,90)
    t.fd(i)
    t.rt(200)
    t.fd(i)
    t.rt(30)
    t.end_fill()
t.done()

Comments

Popular posts from this blog

free fire logo || python turtle graphics code

python turtle animation 15

python turtle animation (3)