python turtle animation (2)


import turtle as t
t.tracer(200)
t.setup(1537,865)
t.width(10)
t.bgcolor('black')
for i in range(1000):
       t.pencolor('white')
       t.begin_fill()
       t.fd(i)
       t.setpos(0,0)
       t.fd(i)
       t.rt(120)
       t.fd(i)
       t.lt(60)
       t.circle(i,90)
       t.fd(i)
       t.rt(90)
       t.fd(i)
       t.rt(120.9)
       t.end_fill()
t.done()

Comments

Popular posts from this blog

python turtle animation 16

python turtle animation 15

python turtle animation 12