pygame draw lien code example
Example 1: pygame.draw.rect()
gameDisplay = pygame.display.set_mode((width,height))
bright_blue =(0,255,255)
# draw rectangle
pygame.draw.rect(gameDisplay, bright_blue ,(611,473,100,50))
Example 2: pygame draw rect syntax
pygame.draw.rect(SURFACE, RGB_COLOR, (X, Y, WIDTH, HEIGHT))
Example 3: pygame how to draw a rectangle
pygame.draw.rect(DISPLAY,BLUE,(200,150,100,50))