import pygame import sys # Initialize Pygame pygame.init() # Set the width and height of the screen (Japanese flag dimensions) width, height = 600, 400 screen = pygame.display.set_mode((width, height)) pygame.display.set_caption("Japanese Flag") # Define colors WHITE = (255, 255, 255) RED = (255, 0, 0) # Fill the screen with white screen.fill(WHITE) # Draw the red circle (Japanese flag) center = (width // 2, height // 2) radius = min(width, height) // 3 pygame.draw.circle(screen, RED, center, 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()