diff --git a/README.md b/README.md index 35113d9..ee97bd5 100644 --- a/README.md +++ b/README.md @@ -3008,10 +3008,10 @@ while not pg.event.get(pg.QUIT): pg.display.flip() ``` -### Rectangle +### Rect **Object for storing rectangular coordinates.** ```python - = pg.Rect(x, y, width, height) # Returns a rectangle. Floats get truncated. + = pg.Rect(x, y, width, height) # Creates Rect object. Truncates passed floats. = .x/y/centerx/centery/… # Top, right, bottom, left. Allows assignments. = .topleft/center/… # Topright, bottomright, bottomleft. Same. = .move((delta_x, delta_y)) # Use move_ip() to move in-place. diff --git a/index.html b/index.html index 933e8d9..12fba52 100644 --- a/index.html +++ b/index.html @@ -2451,7 +2451,7 @@ rect = pg.Rect(240, 2 pg.display.flip() -

Rectangle

Object for storing rectangular coordinates.

<Rect> = pg.Rect(x, y, width, height)           # Returns a rectangle. Floats get truncated.
+

Rect

Object for storing rectangular coordinates.

<Rect> = pg.Rect(x, y, width, height)           # Creates Rect object. Truncates passed floats.
 <int>  = <Rect>.x/y/centerx/centery/…           # Top, right, bottom, left. Allows assignments.
 <tup.> = <Rect>.topleft/center/…                # Topright, bottomright, bottomleft. Same.
 <Rect> = <Rect>.move((delta_x, delta_y))        # Use move_ip() to move in-place.