http://www.oxeyegames.com/wiki/index.php?title=RenderRectangle&feed=atom&action=historyRenderRectangle - Revision history2024-03-28T09:41:03ZRevision history for this page on the wikiMediaWiki 1.16.0http://www.oxeyegames.com/wiki/index.php?title=RenderRectangle&diff=32&oldid=prevJeb: Created page with '{{VideoMethod | video.renderRectangle(x, y, width, height, a, r, g, b) | This method renders a rectangle on the screen with corners at (x, y) and (x + width - 1, y + height - 1),...'2009-03-05T14:22:38Z<p>Created page with '{{VideoMethod | video.renderRectangle(x, y, width, height, a, r, g, b) | This method renders a rectangle on the screen with corners at (x, y) and (x + width - 1, y + height - 1),...'</p>
<p><b>New page</b></p><div>{{VideoMethod<br />
|<br />
video.renderRectangle(x, y, width, height, a, r, g, b)<br />
|<br />
This method renders a rectangle on the screen with corners at (x, y) and (x + width - 1, y + height - 1), using an ARGB color.<br />
|<br />
{{MethodParam|x|An integer|The left edge of the rectangle, inclusive.}}<br />
{{MethodParam|y|An integer|The top edge of the rectangle, inclusive.}}<br />
{{MethodParam|width|An integer|The width of the rectangle.}}<br />
{{MethodParam|height|An integer|The height of the rectangle.}}<br />
{{MethodParam|a|An integer|The alpha component of the color, with 0 as transparent and 255 as opaque.}}<br />
{{MethodParam|r|An integer|The red component of the color.}}<br />
{{MethodParam|g|An integer|The green component of the color.}}<br />
{{MethodParam|b|An integer|The blue component of the color.}}<br />
|<br />
Returns nothing.<br />
}}<br />
<br />
=== Example ===<br />
<pre><br />
-- fill screen with blue<br />
local w,h = video.getScreenSize()<br />
video.renderRectangle(0, 0, w, h, 255, 0, 0, 128)<br />
</pre></div>Jeb