http://wiki.spheredev.org/index.php?title=Legacy:Rectangle&feed=atom&action=history
Legacy:Rectangle - Revision history
2024-03-28T23:19:26Z
Revision history for this page on the wiki
MediaWiki 1.29.0
http://wiki.spheredev.org/index.php?title=Legacy:Rectangle&diff=714&oldid=prev
Apollolux: added navbox
2013-06-04T21:09:28Z
<p>added navbox</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 21:09, 4 June 2013</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l32" >Line 32:</td>
<td colspan="2" class="diff-lineno">Line 32:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* [[API:FlipScreen|FlipScreen]]()</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* [[API:FlipScreen|FlipScreen]]()</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">[[Category</del>:<del class="diffchange diffchange-inline">Functions]]</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">{{API</ins>:<ins class="diffchange diffchange-inline">Video/navbox}}</ins></div></td></tr>
</table>
Apollolux
http://wiki.spheredev.org/index.php?title=Legacy:Rectangle&diff=675&oldid=prev
Radnen: Created initial page
2013-06-04T00:13:56Z
<p>Created initial page</p>
<p><b>New page</b></p><div>Draws a rectangle to screen at location x, y, with a certain width, height, and color.<br />
<br />
==Usage==<br />
<br />
{{Usage|func=Rectangle|params=x, y, width, height, color}}<br />
<br />
* '''x''' the X coordinate, start of rectangle<br />
* '''y''' the Y coordinate, start of rectangle<br />
* '''width''' the width of rectangle<br />
* '''height''' the height of the rectangle<br />
* '''color''' a [[API:Color|color object]] created with [[API:CreateColor|CreateColor]]<br />
<br />
==Notes==<br />
<br />
Remember that [[API:FlipScreen|FlipScreen]] must be called before any drawing is visible on the screen.<br />
<br />
==Examples==<br />
<br />
Fill the screen with red. Mwahaha!<br />
<br />
<syntaxhighlight><br />
var Red = CreateColor(255, 0, 0);<br />
Rectangle(0, 0, GetScreenWidth(), GetScreenHeight(), Red);<br />
</syntaxhighlight><br />
<br />
==See also==<br />
<br />
* Sphere [[API:Color|Color]] Object<br />
* [[API:CreateColor|CreateColor]](r, g, b, a)<br />
* [[API:Line|Line]](x1, x2, y1, y2, color)<br />
* [[API:Point|Point]](x, y, color)<br />
* [[API:FlipScreen|FlipScreen]]()<br />
<br />
[[Category:Functions]]</div>
Radnen