import pygame import sys pygame.init() display = pygame.display.set_mode((500, 500)) display.fill((255, 255, 255)) pygame.draw.lines(display, (255, 75, 75), closed=True, points=[(20,20), (60,120), (200,180)], width=5) while True: for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() sys.exit() pygame.display.update()