python turtle animation (4)


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

Comments

Popular posts from this blog

python turtle animation 16

python turtle animation 11

free fire logo || python turtle graphics code