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

Skip to content

Commit 274e40e

Browse files
committed
Pygame
1 parent 169ffb2 commit 274e40e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2932,9 +2932,9 @@ while all(event.type != pg.QUIT for event in pg.event.get()):
29322932
### Rect
29332933
**Object for storing rectangular coordinates.**
29342934
```python
2935-
<Rect> = pg.Rect(topleft_x, topleft_y, width, height)
2935+
<Rect> = pg.Rect(x, y, width, height)
29362936
<int> = <Rect>.x/y/centerx/centery
2937-
<tup.> = <Rect>.topleft/topright/bottomright/bottomleft/center
2937+
<tup.> = <Rect>.topleft/center
29382938
<Rect> = <Rect>.move((x, y))
29392939
```
29402940

@@ -2950,7 +2950,7 @@ while all(event.type != pg.QUIT for event in pg.event.get()):
29502950
```python
29512951
<Surf> = pg.display.set_mode((width, height)) # Returns the display surface.
29522952
<Surf> = pg.Surface((width, height)) # Creates a new surface.
2953-
<Surf> = pg.image.load('<path>').convert() # Loads an image.
2953+
<Surf> = pg.image.load('<path>') # Loads the image.
29542954
<Surf> = <Surf>.subsurface(<Rect>) # Returns a subsurface.
29552955
```
29562956

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2493,9 +2493,9 @@
24932493
</code></pre></div></div>
24942494

24952495

2496-
<div><h3 id="rect">Rect</h3><p><strong>Object for storing rectangular coordinates.</strong></p><pre><code class="python language-python hljs">&lt;Rect&gt; = pg.Rect(topleft_x, topleft_y, width, height)
2496+
<div><h3 id="rect">Rect</h3><p><strong>Object for storing rectangular coordinates.</strong></p><pre><code class="python language-python hljs">&lt;Rect&gt; = pg.Rect(x, y, width, height)
24972497
&lt;int&gt; = &lt;Rect&gt;.x/y/centerx/centery
2498-
&lt;tup.&gt; = &lt;Rect&gt;.topleft/topright/bottomright/bottomleft/center
2498+
&lt;tup.&gt; = &lt;Rect&gt;.topleft/center
24992499
&lt;Rect&gt; = &lt;Rect&gt;.move((x, y))
25002500
</code></pre></div>
25012501

@@ -2507,7 +2507,7 @@
25072507
</code></pre>
25082508
<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>
25092509
&lt;Surf&gt; = pg.Surface((width, height)) <span class="hljs-comment"># Creates a new surface.</span>
2510-
&lt;Surf&gt; = pg.image.load(<span class="hljs-string">'&lt;path&gt;'</span>).convert() <span class="hljs-comment"># Loads an image.</span>
2510+
&lt;Surf&gt; = pg.image.load(<span class="hljs-string">'&lt;path&gt;'</span>) <span class="hljs-comment"># Loads the image.</span>
25112511
&lt;Surf&gt; = &lt;Surf&gt;.subsurface(&lt;Rect&gt;) <span class="hljs-comment"># Returns a subsurface.</span>
25122512
</code></pre></div>
25132513

0 commit comments

Comments
 (0)