From 3d820b03da73e2c73d4afbcb7842b2e916a1c518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 15 May 2020 19:09:37 +0200 Subject: [PATCH] Pygame --- README.md | 8 ++++---- index.html | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 60e35e6..ecbc900 100644 --- a/README.md +++ b/README.md @@ -2936,10 +2936,10 @@ while all(event.type != pg.QUIT for event in pg.event.get()): ### Rectangle **Object for storing rectangular coordinates.** ```python - = pg.Rect(x, y, width, height) - = .x/y/centerx/centery/… - = .topleft/center/… - = .move((x, y)) + = pg.Rect(x, y, width, height) # X and y are coordinates of topleft corner. + = .x/y/centerx/centery/… # Top, right, bottom, left. + = .topleft/center/… # Topright, bottomright, bottomleft. + = .move((x, y)) # Use move_ip() to move in place. ``` ```python diff --git a/index.html b/index.html index 20e0a3d..e66c9b7 100644 --- a/index.html +++ b/index.html @@ -2495,10 +2495,10 @@ rect = pg.Rect(240, 2 -

Rectangle

Object for storing rectangular coordinates.

<Rect> = pg.Rect(x, y, width, height)
-<int>  = <Rect>.x/y/centerx/centery/…
-<tup.> = <Rect>.topleft/center/…
-<Rect> = <Rect>.move((x, y))
+

Rectangle

Object for storing rectangular coordinates.

<Rect> = pg.Rect(x, y, width, height)           # X and y are coordinates of topleft corner.
+<int>  = <Rect>.x/y/centerx/centery/…           # Top, right, bottom, left.
+<tup.> = <Rect>.topleft/center/…                # Topright, bottomright, bottomleft.
+<Rect> = <Rect>.move((x, y))                    # Use move_ip() to move in place.