You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<div><h2id="pygame"><ahref="#pygame" name="pygame">#</a>Pygame</h2><div><h4id="opesawindowanddrawsasquarethatcanbemovedwitharrowkeys">Opes a window and draws a square that can be moved with arrow keys:</h4><pre><codeclass="python language-python hljs"><spanclass="hljs-comment"># $ pip3 install pygame</span>
<Surf> = <Font>.render(text, antialias, color) <spanclass="hljs-comment"># Background color can be specified at the end.</span>
2490
-
</code></pre></div>
2491
-
2492
+
</code></pre>
2492
2493
<div><h3id="sound">Sound</h3><pre><codeclass="python language-python hljs"><Sound> = pg.mixer.Sound(<path/file/bytes>) <spanclass="hljs-comment"># WAV file or bytes/array of signed shorts.</span>
2493
2494
<Sound>.play/stop() <spanclass="hljs-comment"># Also set_volume(<float>), fadeout(msec).</span>
0 commit comments