from turtle import *

bgcolor('black')

# Define parameters for each spiral
spirals = [
    ('green', 1, 82, 40, -6),
    ('red', 1, 84, 40, -6),
    ('white', 2, 98, 50, -5),
    ('yellow', 2, 70, 50, -5),
    ('blue', 2, 97, 70, -5),
    ('orange', 2, 87, 40, -17),
    ('pink', 3, 102, 60, -17),
]

# Set initial position and direction
penup()
goto(-200, 0)
pendown()

# Animation loop
for _ in range(500):  # Change the number of iterations as desired
    for a_color, a_pensize, start_radius, stop_radius, radius_step in spirals:
        pensize(a_pensize)
        color(a_color)
        for angle_index in range(10):
            for radius in range(start_radius, stop_radius, radius_step):
                circle(radius)
            right(36)
        # Move turtle forward to start drawing the next spiral
        forward(10)
        # Add a delay to slow down the animation
        ontimer(lambda: None, 100)

done()
