c0de paint 0.2.0Diese Seite auf Deutsch

CANVAS_MERGE ​

Draws source, a canvas or an ARRAY of canvases, into target, moved by offset. With mode "OVERWRITE", set voxels of the source replace those of the target; with "KEEP", they only fill voxels that are not set. Voxels that are not set in the source never change the target; air does.

Parameters and results

  • target TYPE c0de_paint/cpaint/CANVAS: the canvas that changes (a variable)
  • source TYPE c0de_paint/cpaint/CANVAS or ARRAY TYPE c0de_paint/cpaint/CANVAS: what is drawn
  • mode STRING: "OVERWRITE" or "KEEP" (optional, default "OVERWRITE")
  • offset STRUCT c0de_paint/cpaint/POINT: the shift (optional, default 0,0,0)

Example

c0de
CALL c0de_paint/cpaint/CANVAS_MERGE
    PARAMETER target castle ;
    PARAMETER source tower ;
    PARAMETER offset corner ;

Used in the tutorials ​