Examples for pygame.Rect

Virutal Attributes - Used to move/align rect objects

Creating a Rect object

Getting and setting Rect attributes

Getting Rect position and size as a tuple

Moving a Rect

Centering a Rect

Checking if two Rects intersect

Checking if a point is inside a Rect

Inflating a Rect

Clipping a Rect to a Surface

Converting a Rect to a normalized form