@ -2516,25 +2516,25 @@ 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 the rectangle.</span>
<bool> = <Rect>.colliderect(<Rect>) <spanclass="hljs-comment"># Tests if two rectangles overlap.</span>
<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>
<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>
</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"># New RGB surface. Add `pg.SRCALPHA` for RGBA.</span>
<Surf> = pg.Surface((width, height), …) <spanclass="hljs-comment"># New RGB surface. Add `pg.SRCALPHA` for RGBA.</span>
<Surf> = pg.image.load(<spanclass="hljs-string">'<path>'</span>) <spanclass="hljs-comment"># Loads the image. Format depends on source.</span>
<Surf> = <Surf>.subsurface(<Rect>) <spanclass="hljs-comment"># Returns a subsurface.</span>
</code></pre></div>
<pre><codeclass="python language-python hljs"><Surf>.fill(color) <spanclass="hljs-comment"># Fills the whole surface.</span>
<pre><codeclass="python language-python hljs"><Surf>.fill(color) <spanclass="hljs-comment"># Tuple, Color('#rrggbb[aa]') or Color(<name>).</span>