The colored hexagon is rotated about a fixed point. 20 images of the colored hexagons are shown in the spirograph.
You can try this on your laptop by copying the Python code below. Enjoy!!
Here is the Python Code
import turtle
scrin = turtle.Screen()
scrin.bgcolor("pink")
t = turtle.Turtle()
t.hideturtle()
t.pensize(8)
t.speed(5)
for i in range(20):
t.left(18)
for colors in ["red", "green", "blue", "red", "green", "red"]:
t.color(colors)
t.forward(140)
t.right(60)
scrin.exitonclick()