import pygame import sys # Initialize Pygame pygame.init() # Set the width and height of the screen width, height = 400, 600 screen = pygame.display.set_mode((width, height)) pygame.display.set_caption("Drake") # Define colors WHITE = (255, 255, 255) BLACK = (0, 0, 0) YELLOW = (50, 25, 0) # Fill the screen with white screen.fill(WHITE) # Draw Drake's head (circle) head_radius = 100 pygame.draw.circle(screen, YELLOW, (width//2, height//3), head_radius) # Draw Drake's eyes (circles) eye_radius = 10 left_eye_pos = (width//2 - 30, height//3 - 30) right_eye_pos = (width//2 + 30, height//3 - 30) pygame.draw.circle(screen, BLACK, left_eye_pos, eye_radius) pygame.draw.circle(screen, BLACK, right_eye_pos, eye_radius) # Draw Drake's mouth (line) pygame.draw.line(screen, BLACK, (width//2 - 30, height//3 + 30), (width//2 + 30, height//3 + 30), 3) # 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()