This is kind of embarrasing but I forgot how to fill a rect object with a certain color.
Here's everything so you can see the full context.
import pygame from pygame.locals import * pygame.init() pygame.display.set_mode((800,600)) s = pygame.display.get_surface()
r = pygame.Rect(100,100,100,100) s.fill(Color("red"), r) pygame.display.flip() while 1: pygame.event.get()