Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 97c94e0

Browse files
committed
Pygame
1 parent 52f59e6 commit 97c94e0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2949,8 +2949,8 @@ while all(event.type != pg.QUIT for event in pg.event.get()):
29492949
**Object for representing images.**
29502950
```python
29512951
<Surf> = pg.display.set_mode((width, height)) # Returns the display surface.
2952-
<Surf> = pg.Surface((width, height)) # Creates a new surface.
2953-
<Surf> = pg.image.load('<path>') # Loads the image.
2952+
<Surf> = pg.Surface((width, height) [, ...]) # New RGB surface. Add `pg.SRCALPHA` for RGBA.
2953+
<Surf> = pg.image.load('<path>') # Loads the image. Format depends on source.
29542954
<Surf> = <Surf>.subsurface(<Rect>) # Returns a subsurface.
29552955
```
29562956

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2521,8 +2521,8 @@
25212521
&lt;list&gt; = &lt;Rect&gt;.collidelistall(&lt;list_of_Rect&gt;) <span class="hljs-comment"># Returns indexes of all colliding Rects.</span>
25222522
</code></pre>
25232523
<div><h3 id="surface">Surface</h3><p><strong>Object for representing images.</strong></p><pre><code class="python language-python hljs">&lt;Surf&gt; = pg.display.set_mode((width, height)) <span class="hljs-comment"># Returns the display surface.</span>
2524-
&lt;Surf&gt; = pg.Surface((width, height)) <span class="hljs-comment"># Creates a new surface.</span>
2525-
&lt;Surf&gt; = pg.image.load(<span class="hljs-string">'&lt;path&gt;'</span>) <span class="hljs-comment"># Loads the image.</span>
2524+
&lt;Surf&gt; = pg.Surface((width, height) [, ...]) <span class="hljs-comment"># New RGB surface. Add `pg.SRCALPHA` for RGBA.</span>
2525+
&lt;Surf&gt; = pg.image.load(<span class="hljs-string">'&lt;path&gt;'</span>) <span class="hljs-comment"># Loads the image. Format depends on source.</span>
25262526
&lt;Surf&gt; = &lt;Surf&gt;.subsurface(&lt;Rect&gt;) <span class="hljs-comment"># Returns a subsurface.</span>
25272527
</code></pre></div>
25282528

0 commit comments

Comments
 (0)