From 274e40e49ec3e10e6022e66f77b61f385e979d82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 13 Mar 2020 20:41:55 +0100 Subject: [PATCH] Pygame --- README.md | 6 +++--- index.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 7440c6c..002a1b8 100644 --- a/README.md +++ b/README.md @@ -2932,9 +2932,9 @@ while all(event.type != pg.QUIT for event in pg.event.get()): ### Rect **Object for storing rectangular coordinates.** ```python - = pg.Rect(topleft_x, topleft_y, width, height) + = pg.Rect(x, y, width, height) = .x/y/centerx/centery - = .topleft/topright/bottomright/bottomleft/center + = .topleft/center = .move((x, y)) ``` @@ -2950,7 +2950,7 @@ while all(event.type != pg.QUIT for event in pg.event.get()): ```python = 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. + = pg.image.load('') # Loads the image. = .subsurface() # Returns a subsurface. ``` diff --git a/index.html b/index.html index 52a5b04..6d025f5 100644 --- a/index.html +++ b/index.html @@ -2493,9 +2493,9 @@ rect = pg.Rect(240, 2 -

Rect

Object for storing rectangular coordinates.

<Rect> = pg.Rect(topleft_x, topleft_y, width, height)
+

Rect

Object for storing rectangular coordinates.

<Rect> = pg.Rect(x, y, width, height)
 <int>  = <Rect>.x/y/centerx/centery
-<tup.> = <Rect>.topleft/topright/bottomright/bottomleft/center
+<tup.> = <Rect>.topleft/center
 <Rect> = <Rect>.move((x, y))
 
@@ -2507,7 +2507,7 @@ 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> = pg.image.load('<path>')                # Loads the image.
 <Surf> = <Surf>.subsurface(<Rect>)              # Returns a subsurface.