c0de paint 0.2.0Diese Seite auf Deutsch

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

  • canvas TYPE c0de_paint/cpaint/CANVAS: the canvas (a variable)
  • points ARRAY STRUCT c0de_paint/cpaint/POINT: the corners
  • line_style, fill_style TYPE 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 ;

Used in the tutorials ​