DRAW_PYRAMID
Draws a pyramid with a square base, its sides parallel to the axes. Half the length of a side is r; the tip lies h voxels from the base in direction. The lines are the four sides of the base and the four edges to the tip.
Parameters and results
canvasTYPE c0de_paint/cpaint/CANVAS: the canvas (a variable)centerSTRUCT c0de_paint/cpaint/POINT: the center of the baser,hINTEGER: half the side and the heightdirectionSTRING: the direction of the tipline_style,side_style,fill_styleTYPE c0de_paint/cpaint/STYLE: the styles (optional)
Example
c0de
CALL c0de_paint/cpaint/DRAW_PYRAMID
PARAMETER canvas c ;
PARAMETER center base ;
PARAMETER r 10 ;
PARAMETER h 10 ;
PARAMETER direction "+y" ;
PARAMETER fill_style sandstone ;