Skip to content

Commit b85b689

Browse files
committed
Pygame
1 parent c2ed921 commit b85b689

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3008,10 +3008,10 @@ while not pg.event.get(pg.QUIT):
30083008
pg.display.flip()
30093009
```
30103010

3011-
### Rectangle
3011+
### Rect
30123012
**Object for storing rectangular coordinates.**
30133013
```python
3014-
<Rect> = pg.Rect(x, y, width, height) # Returns a rectangle. Floats get truncated.
3014+
<Rect> = pg.Rect(x, y, width, height) # Creates Rect object. Truncates passed floats.
30153015
<int> = <Rect>.x/y/centerx/centery/# Top, right, bottom, left. Allows assignments.
30163016
<tup.> = <Rect>.topleft/center/# Topright, bottomright, bottomleft. Same.
30173017
<Rect> = <Rect>.move((delta_x, delta_y)) # Use move_ip() to move in-place.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2451,7 +2451,7 @@ <h3 id="format-2">Format</h3><div><h4 id="forstandardtypesizesandmanualalignment
24512451
pg.display.flip()
24522452
</code></pre></div>
24532453

2454-
<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"># Returns a rectangle. Floats get truncated.</span>
2454+
<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) <span class="hljs-comment"># Creates Rect object. Truncates passed floats.</span>
24552455
&lt;int&gt; = &lt;Rect&gt;.x/y/centerx/centery/… <span class="hljs-comment"># Top, right, bottom, left. Allows assignments.</span>
24562456
&lt;tup.&gt; = &lt;Rect&gt;.topleft/center/… <span class="hljs-comment"># Topright, bottomright, bottomleft. Same.</span>
24572457
&lt;Rect&gt; = &lt;Rect&gt;.move((delta_x, delta_y)) <span class="hljs-comment"># Use move_ip() to move in-place.</span>

0 commit comments

Comments
 (0)