<li><strong>Use<codeclass="python hljs"><spanclass="hljs-string">'{<el>:{<str/int/float>}[...]}'</span></code> to set options dynamically.</strong></li>
<li><strong>Options can be generated dynamically:<codeclass="python hljs"><spanclass="hljs-string">f'<spanclass="hljs-subst">{<el>:{<str/int>}</span>[…]}'</span></code>.</strong></li>
<li><strong>Adding <codeclass="python hljs"><spanclass="hljs-string">'!r'</span></code> before the colon converts object to string by calling its <ahref="#class">repr()</a> method.</strong></li>
<Surf> = pg.Surface((width, height), …) <spanclass="hljs-comment"># New RGB surface. Add `pg.SRCALPHA` for RGBA.</span>
<Surf> = pg.Surface((width, height) [, flags])<spanclass="hljs-comment"># New RGB surface. RGBA if `flags=pg.SRCALPHA`.</span>
<Surf> = pg.image.load(<spanclass="hljs-string">'<path>'</span>) <spanclass="hljs-comment"># Loads the image. Format depends on source.</span>
<Surf> = <Surf>.subsurface(<Rect>) <spanclass="hljs-comment"># Returns a subsurface.</span>