File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2989,7 +2989,7 @@ while all(event.type != pg.QUIT for event in pg.event.get()):
2989
2989
```
2990
2990
2991
2991
``` python
2992
- < bool > = < Rect> .collidepoint((x, y)) # Checks if rectangle contains a point.
2992
+ < bool > = < Rect> .collidepoint((x, y)) # Checks if rectangle contains the point.
2993
2993
< bool > = < Rect> .colliderect(< Rect> ) # Checks if two rectangles overlap.
2994
2994
< int > = < Rect> .collidelist(< list_of_Rect> ) # Returns index of first colliding Rect or -1.
2995
2995
< list > = < Rect> .collidelistall(< list_of_Rect> ) # Returns indexes of all colliding rectangles.
Original file line number Diff line number Diff line change @@ -2437,7 +2437,7 @@ <h3 id="format-2">Format</h3><div><h4 id="forstandardtypesizesandmanualalignment
2437
2437
</ code > </ pre > </ div >
2438
2438
2439
2439
2440
- < pre > < code class ="python language-python hljs "> <bool> = <Rect>.collidepoint((x, y)) < span class ="hljs-comment "> # Checks if rectangle contains a point.</ span >
2440
+ < pre > < code class ="python language-python hljs "> <bool> = <Rect>.collidepoint((x, y)) < span class ="hljs-comment "> # Checks if rectangle contains the point.</ span >
2441
2441
<bool> = <Rect>.colliderect(<Rect>) < span class ="hljs-comment "> # Checks if two rectangles overlap.</ span >
2442
2442
<int> = <Rect>.collidelist(<list_of_Rect>) < span class ="hljs-comment "> # Returns index of first colliding Rect or -1.</ span >
2443
2443
<list> = <Rect>.collidelistall(<list_of_Rect>) < span class ="hljs-comment "> # Returns indexes of all colliding rectangles.</ span >
You can’t perform that action at this time.
0 commit comments