import pygame import sys pygame.init() display = pygame.display.set_mode((300,300)) display.fill((255,255,255)) pygame.draw.rect(display, (255,50,50), (80,80,150,200), width = 0, border_radius = 20) pygame.draw.ellipse(display, (0,100,255), pygame.Rect(50,100,150,80), width = 0) while True: for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() sys.exit() pygame.display.update()