DrawPath
| Description: | Draws a polygon in any window. |
| Returns: | Nothing |
Usage: ![]() |
Steady State only. |
| Function Groups: | Graphics |
| Related to: | DrawArcPath | DrawChordPath | DrawEllipticalPath | DrawPiePath | PathDraw |
Format: ![]() |
DrawPath(XArray, YArray, N, Object) |
| Parameters: |
| XArray |
| Required. An array element expression. This array specifies the X coordinates of the path to draw, beginning with the element specified. |
| YArray |
| Required. An array element expression. This array specifies the Y coordinates of the path to draw, beginning with the element specified. |
| N |
| Required. Any numeric expression for the number of points (number of array elements) in the path. |
| Object |
| Required. Any expression for the object value that defines the window. |
| Comments: |
This statement is intended for building drawing tools. The polygon is drawn in white and is exclusive OR'ed onto the screen. Do not confuse DrawPath with the function, PathDraw() |
Example:
DrawPath(xValues[0], yValues[0]
{ Starting coordinates that define polygon },
11 { Figure has 11 vertices },
Self() { Draw in this module's window });
This will draw a 10 sided polygon as defined by the coordinates in the two arrays.
