draw a line in pygame code example
Example 1: pygame draw line
pygame.draw.line(SURFACE, COLOR, START_POS, END_POS, WIDTH)
Example 2: pygame draw rect syntax
pygame.draw.rect(SURFACE, RGB_COLOR, (X, Y, WIDTH, HEIGHT))
Example 3: draw a line pygame
pygame.draw.line(surface, color, start_pos, end_pos, width)
Example 4: pygame how to draw a rectangle
pygame.draw.rect(DISPLAY,BLUE,(200,150,100,50))