diff --git a/README.md b/README.md index 447aee4..a32895a 100644 --- a/README.md +++ b/README.md @@ -2935,11 +2935,11 @@ while all(event.type != pg.QUIT for event in pg.event.get()): = pg.Rect(topleft_x, topleft_y, width, height) = .x/y/centerx/centery = .topleft/topright/bottomright/bottomleft/center - = .move() + = .move((x, y)) ``` ```python - = .collidepoint() # Tests if a point is inside a rectangle. + = .collidepoint((x, y)) # Tests if a point is inside a rectangle. = .colliderect() # Tests if two rectangles overlap. = .collidelist() # Returns index of first colliding Rect or -1. = .collidelistall() # Returns indices of all colliding Rects. @@ -2955,8 +2955,8 @@ while all(event.type != pg.QUIT for event in pg.event.get()): ``` ```python -.set_at((x, y), color) # Updates pixel. .fill(color) # Fills the whole surface. +.set_at((x, y), color) # Updates pixel. .blit(, (x, y)) # Draws passed surface to the surface. ``` @@ -2967,7 +2967,7 @@ while all(event.type != pg.QUIT for event in pg.event.get()): ``` ```python -pg.draw.line(, color, start_pos, end_pos, width) +pg.draw.line(, color, (x1, y1), (x2, y2), width) pg.draw.arc(, color, , start_radians, stop_radians) pg.draw.rect(, color, ) pg.draw.polygon(, color, points) @@ -2976,7 +2976,7 @@ pg.draw.ellipse(, color, ) ### Font ```python - = pg.font.SysFont(name, size, bold=False, italic=False) + = pg.font.SysFont('', size, bold=False, italic=False) = pg.font.Font('', size) = .render(text, antialias, color, background=None) ``` diff --git a/index.html b/index.html index a589151..79ef25e 100644 --- a/index.html +++ b/index.html @@ -2496,11 +2496,11 @@ rect = pg.Rect(240, 2

Rect

Object for storing rectangular coordinates.

<Rect> = pg.Rect(topleft_x, topleft_y, width, height)
 <int>  = <Rect>.x/y/centerx/centery
 <tup.> = <Rect>.topleft/topright/bottomright/bottomleft/center
-<Rect> = <Rect>.move(<tuple>)
+<Rect> = <Rect>.move((x, y))
 
-
<bool> = <Rect>.collidepoint(<tuple>)           # Tests if a point is inside a rectangle.
+
<bool> = <Rect>.collidepoint((x, y))            # Tests if a point is inside a rectangle.
 <bool> = <Rect>.colliderect(<Rect>)             # Tests if two rectangles overlap.
 <int>  = <Rect>.collidelist(<list_of_Rect>)     # Returns index of first colliding Rect or -1.
 <list> = <Rect>.collidelistall(<list_of_Rect>)  # Returns indices of all colliding Rects.
@@ -2512,21 +2512,21 @@ rect = pg.Rect(240, 2
 
-
<Surf>.set_at((x, y), color)                    # Updates pixel.
-<Surf>.fill(color)                              # Fills the whole surface.
+
<Surf>.fill(color)                              # Fills the whole surface.
+<Surf>.set_at((x, y), color)                    # Updates pixel.
 <Surf>.blit(<Surface>, (x, y))                  # Draws passed surface to the surface.
 
<Surf> = pg.transform.flip(<Surf>, xbool, ybool)
 <Surf> = pg.transform.rotate(<Surf>, degrees)
 <Surf> = pg.transform.scale(<Surf>, (width, height))
 
-
pg.draw.line(<Surf>, color, start_pos, end_pos, width)
+
pg.draw.line(<Surf>, color, (x1, y1), (x2, y2), width)
 pg.draw.arc(<Surf>, color, <Rect>, start_radians, stop_radians)
 pg.draw.rect(<Surf>, color, <Rect>)
 pg.draw.polygon(<Surf>, color, points)
 pg.draw.ellipse(<Surf>, color, <Rect>)
 
-

Font

<Font> = pg.font.SysFont(name, size, bold=False, italic=False)
+

Font

<Font> = pg.font.SysFont('<name>', size, bold=False, italic=False)
 <Font> = pg.font.Font('<path>', size)
 <Surf> = <Font>.render(text, antialias, color, background=None)