diff --git a/README.md b/README.md index 77dd768..04dcebe 100644 --- a/README.md +++ b/README.md @@ -2951,13 +2951,13 @@ while all(event.type != pg.QUIT for event in pg.event.get()): = pg.display.set_mode((width, height)) # Returns the display surface. = pg.Surface((width, height)) # Creates a new surface. = pg.image.load('').convert() # Loads an image. + = .subsurface() # Returns a subsurface. ``` ```python .set_at((x, y), color) # Updates pixel. .fill(color) # Fills the whole surface. .blit(, (x, y)) # Draws passed surface to the surface. - = .subsurface() # Returns subsurface. ``` ```python diff --git a/index.html b/index.html index d8925c6..35428e5 100644 --- a/index.html +++ b/index.html @@ -2508,13 +2508,13 @@ rect = pg.Rect(240, 2

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>').convert()      # Loads an image.
+<Surf> = <Surf>.subsurface(<Rect>)              # Returns a subsurface.
 
<Surf>.set_at((x, y), color)                    # Updates pixel.
 <Surf>.fill(color)                              # Fills the whole surface.
 <Surf>.blit(<Surface>, (x, y))                  # Draws passed surface to the surface.
-<Surf> = <Surf>.subsurface(<Rect>)              # Returns subsurface.
 
<Surf> = pg.transform.flip(<Surf>, xbool, ybool)
 <Surf> = pg.transform.rotate(<Surf>, degrees)