python turtle animation 16


import turtle as t
t.tracer(10)
t.bgcolor('black')
t.setup(1537,865)
t.width(20)
color=('red','blue')
t.ht()
for i in range(700):
    t.fillcolor(color[i%2])
    t.pencolor('black')
    t.begin_fill()
    t.bk(i)
    t.rt(120)
    t.fd(i)
    t.lt(90)
    t.fd(i)
    t.rt(120)
    t.fd(i)
    t.rt(31)
    t.end_fill()
t.done()





Subscribe to subhanker codes

Comments

Popular posts from this blog

python turtle animation 11

free fire logo || python turtle graphics code