Skip to content

Commit 3d820b0

Browse files
committed
Pygame
1 parent 500d12b commit 3d820b0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2936,10 +2936,10 @@ while all(event.type != pg.QUIT for event in pg.event.get()):
29362936
### Rectangle
29372937
**Object for storing rectangular coordinates.**
29382938
```python
2939-
<Rect> = pg.Rect(x, y, width, height)
2940-
<int> = <Rect>.x/y/centerx/centery/
2941-
<tup.> = <Rect>.topleft/center/
2942-
<Rect> = <Rect>.move((x, y))
2939+
<Rect> = pg.Rect(x, y, width, height) # X and y are coordinates of topleft corner.
2940+
<int> = <Rect>.x/y/centerx/centery/ # Top, right, bottom, left.
2941+
<tup.> = <Rect>.topleft/center/ # Topright, bottomright, bottomleft.
2942+
<Rect> = <Rect>.move((x, y)) # Use move_ip() to move in place.
29432943
```
29442944

29452945
```python

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2495,10 +2495,10 @@
24952495
</code></pre></div></div>
24962496

24972497

2498-
<div><h3 id="rectangle">Rectangle</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)
2499-
&lt;int&gt; = &lt;Rect&gt;.x/y/centerx/centery/…
2500-
&lt;tup.&gt; = &lt;Rect&gt;.topleft/center/…
2501-
&lt;Rect&gt; = &lt;Rect&gt;.move((x, y))
2498+
<div><h3 id="rectangle">Rectangle</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) <span class="hljs-comment"># X and y are coordinates of topleft corner.</span>
2499+
&lt;int&gt; = &lt;Rect&gt;.x/y/centerx/centery/… <span class="hljs-comment"># Top, right, bottom, left.</span>
2500+
&lt;tup.&gt; = &lt;Rect&gt;.topleft/center/… <span class="hljs-comment"># Topright, bottomright, bottomleft.</span>
2501+
&lt;Rect&gt; = &lt;Rect&gt;.move((x, y)) <span class="hljs-comment"># Use move_ip() to move in place.</span>
25022502
</code></pre></div>
25032503

25042504

0 commit comments

Comments
 (0)