pygame drwa line code example
Example 1: draw a line pygame
pygame.draw.line(surface, color, start_pos, end_pos, width)
Example 2: pygame how to draw a rectangle
pygame.draw.rect(DISPLAY,BLUE,(200,150,100,50))
pygame.draw.line(surface, color, start_pos, end_pos, width)
pygame.draw.rect(DISPLAY,BLUE,(200,150,100,50))