c0de paint 0.2.0Diese Seite auf Deutsch

SAVE_CANVAS ​

Writes the canvas into a file. A file that exists is only replaced with overwrite TRUE, otherwise SCHEMATIC_EXISTS. The client of the player must allow writing (allowSchematicWrites, otherwise SCHEMATICS_DISABLED). A file larger than maxSchematicSize raises SCHEMATIC_TOO_LARGE.

Parameters and results

  • canvas TYPE c0de_paint/cpaint/CANVAS: the canvas
  • file STRING: the name of the file
  • overwrite BOOLEAN: replace a file that exists (optional, default FALSE)

Example

c0de
CALL c0de_paint/cpaint/SAVE_CANVAS
    PARAMETER canvas house ;
    PARAMETER file "house" ;

Used in the tutorials ​