2019.06.05(am): How to draw colorful spiral with python turtle

import turtle
colors=['red','purple','blue','green','yellow','orange']
turtle.bgcolor('black')
for x in range(360):
    turtle.pencolor(colors[x%6])
    turtle.width(x/100+1)
    turtle.forward(x)
    turtle.left(59)

2 Replies to “2019.06.05(am): How to draw colorful spiral with python turtle”

Leave a Reply

Your email address will not be published. Required fields are marked *