diff --git a/README.md b/README.md index c8af3c7..db18367 100644 --- a/README.md +++ b/README.md @@ -2985,7 +2985,7 @@ while not pg.event.get(pg.QUIT): = pg.Rect(x, y, width, height) # Floats get truncated into ints. = .x/y/centerx/centery/… # Top, right, bottom, left. Allows assignments. = .topleft/center/… # Topright, bottomright, bottomleft. Same. - = .move((x, y)) # Use move_ip() to move in-place. + = .move((delta_x, delta_y)) # Use move_ip() to move in-place. ``` ```python @@ -2998,7 +2998,7 @@ while not pg.event.get(pg.QUIT): ### Surface **Object for representing images.** ```python - = pg.display.set_mode((width, height)) # Returns a display surface. + = pg.display.set_mode((width, height)) # Opens new window and returns its surface. = pg.Surface((width, height)) # New RGB surface. RGBA if `flags=pg.SRCALPHA`. = pg.image.load('') # Loads the image. Format depends on source. = .subsurface() # Returns a subsurface. diff --git a/index.html b/index.html index 6442012..35f64a6 100644 --- a/index.html +++ b/index.html @@ -2437,7 +2437,7 @@ rect = pg.Rect(240, 2

Rectangle

Object for storing rectangular coordinates.

<Rect> = pg.Rect(x, y, width, height)           # Floats get truncated into ints.
 <int>  = <Rect>.x/y/centerx/centery/…           # Top, right, bottom, left. Allows assignments.
 <tup.> = <Rect>.topleft/center/…                # Topright, bottomright, bottomleft. Same.
-<Rect> = <Rect>.move((x, y))                    # Use move_ip() to move in-place.
+<Rect> = <Rect>.move((delta_x, delta_y))        # Use move_ip() to move in-place.
 
@@ -2446,7 +2446,7 @@ rect = pg.Rect(240, 2 <int> = <Rect>.collidelist(<list_of_Rect>) # Returns index of first colliding Rect or -1. <list> = <Rect>.collidelistall(<list_of_Rect>) # Returns indexes of all colliding rectangles. -

Surface

Object for representing images.

<Surf> = pg.display.set_mode((width, height))   # Returns a display surface.
+

Surface

Object for representing images.

<Surf> = pg.display.set_mode((width, height))   # Opens new window and returns its surface.
 <Surf> = pg.Surface((width, height))            # New RGB surface. RGBA if `flags=pg.SRCALPHA`.
 <Surf> = pg.image.load('<path>')                # Loads the image. Format depends on source.
 <Surf> = <Surf>.subsurface(<Rect>)              # Returns a subsurface.