import pygame import sys pygame.init() WHITE=(255,255,255) RED=(255,0,0) BLUE=(0,0,255) GREEN=(0,255,0) BLACK=(0,0,0) pygame.display.set_caption("Shapes") display = pygame.display.set_mode((300,300)) display.fill(WHITE) pygame.draw.polygon(display, (RED), [(120,120), (40,160), (40,220), (200, 220), (200,160)], width=0) while True: events = pygame.event.get() for event in events: if event.type == pygame.QUIT: pygame.quit() sys.exit() pygame.display.update()