Hypno-Spiral π
Here's the loop trick that makes spirals: that i in for i in range(...) is a counter β it goes 0, 1, 2, 3β¦ every time the loop
repeats. If you walk i * 3 steps, each walk is a little longer than
the last. Longerβ¦ and longerβ¦ and the path spirals outward! π
for i in range(80):
turtle.forward(i * 3)
turtle.left(91)
Try different turn angles: 91 makes a squarish spiral, 61 a triangle-ish one, 121 something else entirely. Experiment!
Your mission
turtle.speed(0)makes the turtle draw instantly β spirals have lots of lines!- Use a loop with at least
range(50)andforward(i * 3)(or similar) - Make it colorful β bgcolor and at least one bright pencolor