amazing patterns


import turtle as t
t.tracer(20)
t.setup(1537,865)
t.setpos(100,-50)
t.bgcolor('black')
color=('blue','yellow')
for i in range(250):
  t.pencolor('black')
  t.fillcolor(color[i%2])
  t.begin_fill()
  t.fd(i)
  t.rt(200)
  t.fd(i)
  t.circle(90,90)
  t.fd(i)
  t.stamp()
  t.fd(i)
  t.rt(300)
  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 14