import pygame import sys # Initialize Pygame pygame.init() # Set the width and height of the screen width, height = 800, 600 screen = pygame.display.set_mode((width, height)) pygame.display.set_caption("Solar Eclipse") # Define colors WHITE = (255, 255, 255) BLACK = (0, 0, 0) YELLOW = (255, 165, 0) GREY = (4, 4, 4) # Fill the screen with black screen.fill(BLACK) # Draw the sun sun_radius = 150 sun_position = (width // 2, height // 2) pygame.draw.circle(screen, YELLOW, sun_position, sun_radius) # Draw the moon moon_radius = 148 moon_position = (width // 2 , height // 2) pygame.draw.circle(screen, GREY, moon_position, moon_radius) # Update the display pygame.display.flip() # Main loop while True: for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() sys.exit()