|
|
@ -2529,7 +2529,7 @@ rect = pg.Rect(<span class="hljs-number">240</span>, <span class="hljs-number">2 |
|
|
|
|
|
|
|
<pre><code class="python language-python hljs"><Surf>.fill(color) <span class="hljs-comment"># Fills the whole surface.</span> |
|
|
|
<Surf>.set_at((x, y), color) <span class="hljs-comment"># Updates pixel.</span> |
|
|
|
<Surf>.blit(<Surface>, (x, y)) <span class="hljs-comment"># Draws passed surface to the surface.</span> |
|
|
|
<Surf>.blit(<Surf>, (x, y)) <span class="hljs-comment"># Draws passed surface to the surface.</span> |
|
|
|
</code></pre> |
|
|
|
<pre><code class="python language-python hljs"><Surf> = pg.transform.scale(<Surf>, (width, height)) |
|
|
|
<Surf> = pg.transform.rotate(<Surf>, degrees) |
|
|
|