pygame draw rectangle behind code example
Example 1: pygame draw rect syntax
pygame.draw.rect(SURFACE, RGB_COLOR, (X, Y, WIDTH, HEIGHT))
Example 2: pygame how to draw a rectangle
pygame.draw.rect(DISPLAY,BLUE,(200,150,100,50))
pygame.draw.rect(SURFACE, RGB_COLOR, (X, Y, WIDTH, HEIGHT))
pygame.draw.rect(DISPLAY,BLUE,(200,150,100,50))