python pygame pygame.draw.rect() code example
Example 1: pygame draw rect syntax
pygame.draw.rect(SURFACE, RGB_COLOR, (X, Y, WIDTH, HEIGHT))
Example 2: draw a line pygame
pygame.draw.line(surface, color, start_pos, end_pos, width)
pygame.draw.rect(SURFACE, RGB_COLOR, (X, Y, WIDTH, HEIGHT))
pygame.draw.line(surface, color, start_pos, end_pos, width)