animation


import turtle as t
t.tracer(20)
t.setup(1537,865)
t.width(20)
t.bgcolor('black')
color=('red','green','yellow','cyan')
for i in range(1800):
    t.pencolor('black')
    t.fillcolor(color[i%4])
    t.begin_fill()
    t.fd(i)
    t.rt(300)
    t.fd(i)
    t.lt(299)
    t.circle(44,93)
    t.fd(i)
    t.lt(200)
    t.bk(i)
    t.rt(90)
    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)