how to draw a rect at a position pygame code example
Example 1: pygame draw rect syntax
pygame.draw.rect(SURFACE, RGB_COLOR, (X, Y, WIDTH, HEIGHT))
Example 2: pygame.draw.rect
pygame.draw.rect(surface, color, rect)
pygame.draw.rect(SURFACE, RGB_COLOR, (X, Y, WIDTH, HEIGHT))
pygame.draw.rect(surface, color, rect)