how to draw a line from one point to another in pygame code example Example: draw a line pygame pygame.draw.line(surface, color, start_pos, end_pos, width)