DRAW_POLYGON
Draws a polygon through the points, closed automatically. The first three points that don't lie on one line define the plane; points beside it are projected onto it.
Parameters and results
canvasTYPE c0de_paint/cpaint/CANVAS: the canvas (a variable)pointsARRAY STRUCT c0de_paint/cpaint/POINT: the cornersline_style,fill_styleTYPE c0de_paint/cpaint/STYLE: the styles (optional)
Example
c0de
CALL c0de_paint/cpaint/DRAW_POLYGON
PARAMETER canvas c ;
PARAMETER points gable ;
PARAMETER fill_style planks ;