import pygame from pygame.locals import * import sys #FUNCTIONS #pygame.draw.polygon(surface, color, pointlist, width) #pygame.draw.line(surface, color, start_point, end_point, width) #pygame.draw.lines(surface, color, closed, pointlist, width) #pygame.draw.circle(surface, color, center_point, radius, width) #pygame.draw.ellipse(surface, color, bounding_rectangle, width) #pygame.draw.rect(surface, color, rectangle_tuple, width) BLACK = (0,0,0) RED = (255,0,0) GREEN = (0,255,0) BLUE = (0,0,255) WHITE = (255,255,255) screen = pygame.display.set_mode((600, 600)) screen.fill(WHITE) clock = pygame.time.Clock() pygame.draw.line(screen, BLACK, (100,100),(400,300), width=5) while True : for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() sys.exit() pygame.display.update() clock.tick(60)