1# rectangle colour
2rect_colour = (RGB VALUE)
3
4# define the x, y, width & height for the rectangle
5x_position = 30
6y_position = 30
7rect_width = 60
8rect_height = 60
9
10# draw the rectangle
11pygame.draw.rect(screen, rect_colour, pygame.Rect(rect_width, rect_height))
1gameDisplay = pygame.display.set_mode((width,height))
2bright_blue =(0,255,255)
3
4# draw rectangle
5pygame.draw.rect(gameDisplay, bright_blue ,(611,473,100,50))
1pygame.draw.rect(surface, colour, Rect)
2#Rect would be a .Rect() variable.