You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pre><codeclass="python language-python hljs"><bool> = <Rect>.collidepoint((x, y)) <spanclass="hljs-comment"># Checks if rectangle contains the point.</span>
2463
2463
<bool> = <Rect>.colliderect(<Rect>) <spanclass="hljs-comment"># Checks if the two rectangles overlap.</span>
2464
2464
<int> = <Rect>.collidelist(<list_of_Rect>) <spanclass="hljs-comment"># Returns index of first colliding Rect or -1.</span>
2465
-
<list> = <Rect>.collidelistall(<list_of_Rect>) <spanclass="hljs-comment"># Returns indexes of all colliding rectangles.</span>
2465
+
<list> = <Rect>.collidelistall(<list_of_Rect>) <spanclass="hljs-comment"># Returns indices of all colliding rectangles.</span>
2466
2466
</code></pre>
2467
2467
<div><h3id="surface">Surface</h3><p><strong>Object for representing images.</strong></p><pre><codeclass="python language-python hljs"><Surf> = pg.display.set_mode((width, height)) <spanclass="hljs-comment"># Opens new window and returns its surface.</span>
2468
2468
<Surf> = pg.Surface((width, height)) <spanclass="hljs-comment"># New RGB surface. RGBA if `flags=pg.SRCALPHA`.</span>
0 commit comments