https://wiki.inspired-lua.org/index.php?title=gc:drawPolyLine&feed=atom&action=history
gc:drawPolyLine - Revision history
2024-03-28T13:40:24Z
Revision history for this page on the wiki
MediaWiki 1.33.0
https://wiki.inspired-lua.org/index.php?title=gc:drawPolyLine&diff=507&oldid=prev
Adriweb: /* Example */
2011-07-11T11:58:28Z
<p><span dir="auto"><span class="autocomment">Example</span></span></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 class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 11:58, 11 July 2011</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l30" >Line 30:</td>
<td colspan="2" class="diff-lineno">Line 30:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; 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>This draws a <del class="diffchange diffchange-inline">recatngle </del>(square, actually) whose points are at the given coordinates.</div></td><td class='diff-marker'>+</td><td style="color: #222; 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>This draws a <ins class="diffchange diffchange-inline">rectangle </ins>(square, actually) whose points are at the given coordinates.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This code does the same thing as : [[gc:drawRect]](0,0,100,100).</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This code does the same thing as : [[gc:drawRect]](0,0,100,100).</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><br /><br /></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><br /><br /></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:gc]]</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:gc]]</div></td></tr>
</table>
Adriweb
https://wiki.inspired-lua.org/index.php?title=gc:drawPolyLine&diff=498&oldid=prev
Adriweb: Created page with "'''drawPolyLine''' is a function that is part of gc. Draws a series of lines connecting the (x,y) points. The polygon is not automatically closed; the first x-y..."
2011-07-11T11:39:48Z
<p>Created page with "'''drawPolyLine''' is a function that is part of <a href="/Category:gc" title="Category:gc">gc</a>. Draws a series of lines connecting the (x,y) points. The polygon is not automatically closed; the first x-y..."</p>
<p><b>New page</b></p><div>'''drawPolyLine''' is a function that is part of [[:Category:gc|gc]].<br />
<br />
Draws a series of lines connecting the (x,y) points. The polygon is not automatically closed; the first x-y coordinate pair must be repeated at the end of the array of points to draw a closed polygon.<br />
<br />
<br /> {{Since|3.0}}<br />
<br />
==Syntax==<br />
gc:'''drawPolyLine'''({x(1), y(2), ..., x(n), y(n)})<br />
<br />
{| class="wikitable"<br />
|-<br />
! Parameter !! Type !! Description<br />
|-<br />
| <u><center>x(1)</center></u> || number || x-coordinate of the first point <br />
|-<br />
| <u><center>y(2)</center></u> || number || y-coordinate of the first point <br />
|-<br />
| <u><center>...</center></u> || numbers || x and y coordinates... <br />
|-<br />
| <u><center>x(n)</center></u> || number || x-coordinate of the nth point <br />
|-<br />
<br />
| <u><center>y(n)</center></u> || number || y-coordinate of the nth point <br />
|-<br />
|}<br />
<br />
== Example == <br />
<syntaxhighlight>gc:drawPolyLine({0,0, 0,100, 100,100, 100,0, 0,0})<br />
</syntaxhighlight><br />
<br />
<br />
This draws a recatngle (square, actually) whose points are at the given coordinates.<br />
This code does the same thing as : [[gc:drawRect]](0,0,100,100).<br />
<br />
<br /><br /><br />
[[Category:gc]]</div>
Adriweb