simple code for drawing a rectangle in pygame code example Example: pygame.draw.rect pygame.draw.rect(surface, color, rect)