@ -2505,7 +2505,7 @@ rect = pg.Rect(<span class="hljs-number">240</span>, <span class="hljs-number">2
<pre><codeclass="python language-python hljs"><bool> = <Rect>.collidepoint((x, y)) <spanclass="hljs-comment"># Tests if a point is inside a 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 indices of all colliding Rects.</span>
<list> = <Rect>.collidelistall(<list_of_Rect>) <spanclass="hljs-comment"># Returns indexes of all colliding Rects.</span>
</code></pre>
<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"># Returns the display surface.</span>
<Surf> = pg.Surface((width, height)) <spanclass="hljs-comment"># Creates a new surface.</span>