# Function GraSpline() Foundation

Draws spline (curve).

`GraSpline( [<oPS>], <aPoints>, [<lPenPos>] ) --> lSuccess`

The return value of GraSpline() is .T. (true) if the spline was drawn, otherwise it is .F. (false). If the return value equals .F., the cause of error can be determined by GraError().

The function GraSpline() draws a curve using a specific algorithm, which is a Bezier spline. This algorithm requires that the number of specified points minus 1 must be divisible by 3 or the spline cannot be drawn. The following code determines whether the array meets this condition for GraSpline():

The parameter <lPenPos> specifies whether the current pen position should be used as the origin for the spline. By default a spline begins with the current pen position. If<lPenPos> is not specified or has the value .T. (true), the expression Len(aPoints) must be a multiple of 3. If <lPenPos> is .F. (false) the expression Len(aPoints)-1 must be a multiple of 3.

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.