amazing pattern in python


import turtle as t
t.tracer(2)
t.setup(1537,865)
t.width(5)
color=('red','cyan','green')
t.bgcolor('black')
for i in range(1195):
	t.pencolor(color[i%3])
	t.fd(i)
	t.rt(200)
	t.fd(i)
	t.rt(90)
	t.fd(i)
	t.rt(39)
	t.fd(i)
	t.rt(90)
t.done()

Comments

Popular posts from this blog

free fire logo || python turtle graphics code

python turtle animation 15

python turtle animation (3)