Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to make a square multicolor square spiral python

import turtle
t= turtle.Pen()
t.speed(0)
turtle.bgcolor('black')
colours= ["blue","green","brown","yellow"]
for x in range(100):
    t.forward(x)
    t.left(90)
    t.pencolor(colours[x % 4])
 
PREVIOUS NEXT
Tagged: #square #multicolor #square #spiral #python
ADD COMMENT
Topic
Name
1+9 =