pygame draw.rect documentation code example
Example 1: pygame.Rect
pygame.Rect(top, left, width, height) # all values are integers in pixels
Example 2: pygame draw rect syntax
pygame.draw.rect(SURFACE, RGB_COLOR, (X, Y, WIDTH, HEIGHT))
pygame.Rect(top, left, width, height) # all values are integers in pixels
pygame.draw.rect(SURFACE, RGB_COLOR, (X, Y, WIDTH, HEIGHT))