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"])
Posts
- Example Code (17)
- Programming (31)
- Random Geekiness (33)
- Security (30)
- Solutions (35)
