from turtle import *

bgcolor('black')

# List of zigzag configurations: (pen_color, pen_size, forward_distance, turn_angle)
zigzag_configurations = [
    ('green', 2, 50, 45),   # Right diagonal (north-east)
    ('red', 2, 50, -90),    # Left diagonal (north-west)
    ('blue', 2, 70, 45),    # Right diagonal (north-east)
    ('yellow', 2, 70, -90), # Left diagonal (north-west)
    ('orange', 2, 90, 45),  # Right diagonal (north-east)
    ('purple', 2, 90, -90)  # Left diagonal (north-west)
]

# Set up turtle
t = Turtle()
t.speed(1)

# Loop through the zigzag configurations and move turtle accordingly
for color, pensize, forward_distance, turn_angle in zigzag_configurations:
    t.pensize(pensize)
    t.color(color)
    t.forward(forward_distance)
    t.right(turn_angle)

done()
