diff --git a/README.md b/README.md index a1b2ae5..c53adca 100644 --- a/README.md +++ b/README.md @@ -2949,8 +2949,8 @@ while all(event.type != pg.QUIT for event in pg.event.get()): **Object for representing images.** ```python = pg.display.set_mode((width, height)) # Returns the display surface. - = pg.Surface((width, height)) # Creates a new surface. - = pg.image.load('') # Loads the image. + = pg.Surface((width, height) [, ...]) # New RGB surface. Add `pg.SRCALPHA` for RGBA. + = pg.image.load('') # Loads the image. Format depends on source. = .subsurface() # Returns a subsurface. ``` diff --git a/index.html b/index.html index e12b947..ade0d0b 100644 --- a/index.html +++ b/index.html @@ -2521,8 +2521,8 @@ rect = pg.Rect(240, 2 <list> = <Rect>.collidelistall(<list_of_Rect>) # Returns indexes of all colliding Rects.

Surface

Object for representing images.

<Surf> = pg.display.set_mode((width, height))   # Returns the display surface.
-<Surf> = pg.Surface((width, height))            # Creates a new surface.
-<Surf> = pg.image.load('<path>')                # Loads the image.
+<Surf> = pg.Surface((width, height) [, ...])    # New RGB surface. Add `pg.SRCALPHA` for RGBA.
+<Surf> = pg.image.load('<path>')                # Loads the image. Format depends on source.
 <Surf> = <Surf>.subsurface(<Rect>)              # Returns a subsurface.