<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.inspired-lua.org/index.php?action=history&amp;feed=atom&amp;title=gc%3AdrawRect</id>
	<title>gc:drawRect - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.inspired-lua.org/index.php?action=history&amp;feed=atom&amp;title=gc%3AdrawRect"/>
	<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=gc:drawRect&amp;action=history"/>
	<updated>2026-05-10T20:40:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://wiki.inspired-lua.org/index.php?title=gc:drawRect&amp;diff=499&amp;oldid=prev</id>
		<title>Adriweb: Created page with &quot;gc:'''drawRect''' is a function that is part of the gc (Graphics Context).  Draws a rectangle at coordinates (x,y) with the “x” side being “xwidth” long ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.inspired-lua.org/index.php?title=gc:drawRect&amp;diff=499&amp;oldid=prev"/>
		<updated>2011-07-11T11:50:12Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;gc:&amp;#039;&amp;#039;&amp;#039;drawRect&amp;#039;&amp;#039;&amp;#039; is a function that is part of the &lt;a href=&quot;/Category:gc&quot; title=&quot;Category:gc&quot;&gt;gc&lt;/a&gt; (Graphics Context).  Draws a rectangle at coordinates (x,y) with the “x” side being “xwidth” long ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;gc:'''drawRect''' is a function that is part of the [[:Category:gc|gc]] (Graphics Context).&lt;br /&gt;
&lt;br /&gt;
Draws a rectangle at coordinates (x,y) with the “x” side being “xwidth” long and the “y” side being “yheight” long.&lt;br /&gt;
&lt;br /&gt;
{{Since|3.0}}&lt;br /&gt;
&lt;br /&gt;
== Syntax  ==&lt;br /&gt;
gc:'''drawRect'''(x, y, xwidth, yheight) &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Parameter !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;u&amp;gt;&amp;lt;center&amp;gt;x&amp;lt;/center&amp;gt;&amp;lt;/u&amp;gt; || number || The x-coordinate of the top-left point.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;u&amp;gt;&amp;lt;center&amp;gt;y&amp;lt;/center&amp;gt;&amp;lt;/u&amp;gt; || number || The y-coordinate of the top-left point.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;u&amp;gt;&amp;lt;center&amp;gt;xwidth&amp;lt;/center&amp;gt;&amp;lt;/u&amp;gt; || number || The width of the rectangle&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;u&amp;gt;&amp;lt;center&amp;gt;yheight&amp;lt;/center&amp;gt;&amp;lt;/u&amp;gt; || number || The height of the rectangle&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example == &lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
gc:drawRect(0,0,100,100)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This draws a recatngle (square, actually) whose points are at the given coordinates.&lt;br /&gt;
This code does the same thing as :&lt;br /&gt;
[[gc:drawPolyLine]]({0,0, 0,100, 100,100, 100,0, 0,0}).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also  ==&lt;br /&gt;
*[[gc:drawPolyLine]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:gc]]&lt;/div&gt;</summary>
		<author><name>Adriweb</name></author>
		
	</entry>
</feed>