@ -2516,8 +2516,8 @@ 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 point is inside the rectangle.</span>
<bool> = <Rect>.colliderect(<Rect>) <spanclass="hljs-comment"># Tests if the two rectangles overlap.</span>
<pre><codeclass="python language-python hljs"><bool> = <Rect>.collidepoint((x, y)) <spanclass="hljs-comment"># Checks if rectangle contains a point.</span>
<bool> = <Rect>.colliderect(<Rect>) <spanclass="hljs-comment"># Checks 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>