Ed The Dev .com

Edward Delaporte's Technical Journal

colorLine

no comment

Why? Because it’s awesome.

from turtle import * def colorLine(distance, colors): ... for x in range(0, distance, 1): ... color(colors[x % len(colors)]) ... forward(20)

colorLine(400, ["red", "blue", "purple", "pink", "white"])

Leave a Reply

You must be logged in to post a comment.