DRAW_CYLINDER
Draws a cylinder. The base circle has its center at center and the radius r; the cylinder grows by h voxels in direction. The lines are the rims of both ends; the faces are the whole surface, the mantle and both end discs. For an open tube, draw the end discs again with STYLE_EMPTY.
Parameters and results
canvasTYPE c0de_paint/cpaint/CANVAS: the canvas (a variable)centerSTRUCT c0de_paint/cpaint/POINT: the center of the baser,hINTEGER: the radius and the heightdirectionSTRING: "+x", "-x", "+y", "-y", "+z" or "-z"line_style,side_style,fill_styleTYPE c0de_paint/cpaint/STYLE: the styles (optional)
Example
c0de
CALL c0de_paint/cpaint/DRAW_CYLINDER
PARAMETER canvas c ;
PARAMETER center base ;
PARAMETER r 4 ;
PARAMETER h 12 ;
PARAMETER direction "+y" ;
PARAMETER side_style stone ;