@ -2512,7 +2512,7 @@ rect = pg.Rect(<span class="hljs-number">240</span>, <span class="hljs-number">2
</code></pre></div>
<pre><codeclass="python language-python hljs"><bool> = <Rect>.collidepoint((x, y)) <spanclass="hljs-comment"># Tests if a point is inside a rectangle.</span>
<pre><codeclass="python language-python hljs"><bool> = <Rect>.collidepoint((x, y)) <spanclass="hljs-comment"># Tests if a point is inside the rectangle.</span>
<bool> = <Rect>.colliderect(<Rect>) <spanclass="hljs-comment"># Tests if two rectangles overlap.</span>
<int> = <Rect>.collidelist(<list_of_Rect>) <spanclass="hljs-comment"># Returns index of first colliding Rect or -1.</span>
<list> = <Rect>.collidelistall(<list_of_Rect>) <spanclass="hljs-comment"># Returns indexes of all colliding Rects.</span>