DrawPath

Description:              This statement draws a polygon in any window.

Returns:                    Nothing

Usage:                       Steady State

Format:                      DrawPath(XArray, YArray, N, Object)

Parameters:             XArray     { array }  { required }  { no default }
          An array element expression. This array specifies the X coordinates of the path to draw, beginning with the element specified.

                                    YArray     { array }  { required }  { no default }
          An array element expression. This array specifies the Y coordinates of the path to draw, beginning with the element specified.

                                    N     { numeric }  { required }  { no default }
          Any numeric expression for the number of points (number of array elements) in the path.

                                    Object     { object }  { required }  { no default }
          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.

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.

See Also:

DrawArcPath | DrawChordPath | DrawEllipticalPath | DrawPiePath