new python turtle graphics patterns code


import turtle as t
t.tracer(2)
t.bgcolor('black')
t.setup(1537,865)
l=('red','blue','green','cyan','purple')
for i in range(20000):
      t.pencolor(l[i%3])
      t.fd(i)
      t.rt(200)
      t.fd(i)
      t.rt(300)
      t.fd(i)
      t.rt(300)
t.done()

Comments

Popular posts from this blog

free fire logo || python turtle graphics code

python turtle animation 15

python turtle animation (3)