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)

Comments

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

    1. Well have good time on my site!

Leave a Reply