Difference between revisions of "gc:fillPolygon"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
| − | <p><b>fillPolygon</b> is a function that is part of | + | <p><b>fillPolygon</b> is a function that is part of [[:Category:gc|gc]]. |
| − | </p><p>Fills the polygon defined by the 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. | + | </p><p>Fills the polygon defined by the lines connecting the (x,y) points. |
| − | </p><p><br / | + | |
| + | 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. | ||
| + | </p><p><br /> {{Since|3.0}} | ||
</p> | </p> | ||
<h2>Syntax</h2> | <h2>Syntax</h2> | ||
| Line 32: | Line 34: | ||
This draws a filled-recatngle (square, actually) whose points are at the given coordinates. | This draws a filled-recatngle (square, actually) whose points are at the given coordinates. | ||
</p><p><br /><br /> | </p><p><br /><br /> | ||
| − | </p> | + | </p>[[Category:gc]] |
Revision as of 11:55, 11 July 2011
fillPolygon is a function that is part of gc.
Fills the polygon defined by the 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.
This has been introduced in TI-Nspire OS 3.0 (Changes).
Syntax
gc:fillPolygon({x(1), y(2), ..., x(n), y(n)})
| Parameter | Type | Description |
|---|---|---|
| | number | x-coordinate of the first point |
| | number | y-coordinate of the first point |
| | numbers | x and y coordinates... |
| | number | x-coordinate of the nth point |
| | number | y-coordinate of the nth point |
Example
<span class="kw2">gc:fillPolygon</span><span class="br0">(</span><span class="br0">{</span><span class="nu0">0</span>,<span class="nu0">0</span>, <span class="nu0">0</span>,<span class="nu0">100</span>, <span class="nu0">100</span>,<span class="nu0">100</span>, <span class="nu0">100</span>,<span class="nu0">0</span>, <span class="nu0">0</span>,<span class="nu0">0</span><span class="br0">}</span><span class="br0">)</span>
This draws a filled-recatngle (square, actually) whose points are at the given coordinates.