Lesson 35 of 51 · Patterns
Rotating Shapes
Rotate a shape around a point to create patterns.
Python
from turtle import *
bgcolor("black")
speed(0)
tracer(50)
hideturtle()
colors = ["cyan", "hotpink", "gold", "lime"]
for i in range(18):
color(colors[i % 4])
penup()
goto(0, -100)
pendown()
setheading(i * 20)
circle(100, 180)
penup()
home()
update()
done()Output

1
The Technique
Draw a shape, return home, rotate slightly, repeat.