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.lines(display, (RED), closed = True, points= [(20,20), (60,120), (200,180)], width=2) while True: events = pygame.event.get() for event in events: if event.type == pygame.QUIT: pygame.quit() sys.exit() pygame.display.update()