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
Copy file name to clipboardExpand all lines: index.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2521,8 +2521,8 @@
2521
2521
<list> = <Rect>.collidelistall(<list_of_Rect>) <spanclass="hljs-comment"># Returns indexes of all colliding Rects.</span>
2522
2522
</code></pre>
2523
2523
<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>
2524
-
<Surf> = pg.Surface((width, height)) <spanclass="hljs-comment"># Creates a new surface.</span>
2525
-
<Surf> = pg.image.load(<spanclass="hljs-string">'<path>'</span>) <spanclass="hljs-comment"># Loads the image.</span>
2524
+
<Surf> = pg.Surface((width, height) [, ...])<spanclass="hljs-comment"># New RGB surface. Add `pg.SRCALPHA` for RGBA.</span>
2525
+
<Surf> = pg.image.load(<spanclass="hljs-string">'<path>'</span>) <spanclass="hljs-comment"># Loads the image. Format depends on source.</span>
2526
2526
<Surf> = <Surf>.subsurface(<Rect>) <spanclass="hljs-comment"># Returns a subsurface.</span>
0 commit comments