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"])
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"])