Menu · LOAD_CANVAS
  • Home
  • c0de
  • c0de/math
  • c0de/strings
  • c0de/time
  • c0de/minecraft
  • c0de/security
  • c0de_net/http
  • c0de_net/mail
  • c0de_paint/cpaint
    • Getting started
    • CANVAS
    • STYLE
    • POINT
    • BLOCK
    • STYLE_NONE
    • STYLE_EMPTY
    • STYLE_SOLID
    • STYLE_RANDOM
    • STYLE_GRADIENT
    • STYLE_PATTERN
    • INVENTORY_BLOCKS
    • DRAW_BLOCK
    • DRAW_LINE
    • DRAW_RECTANGLE
    • DRAW_POLYGON
    • DRAW_ELLIPSE
    • DRAW_ARC
    • DRAW_SPIRAL
    • DRAW_BOX
    • DRAW_ELLIPSOID
    • DRAW_CYLINDER
    • DRAW_CONE
    • DRAW_PYRAMID
    • Platonic solids
    • CANVAS_COUNT
    • CANVAS_MIN and CANVAS_MAX
    • CANVAS_GET
    • CANVAS_CLEAR and CANVAS_CROP
    • CANVAS_MOVE
    • CANVAS_REPLACE
    • CANVAS_MERGE
    • CANVAS_MATERIALS
    • CANVAS_ITEMS
    • CANVAS_SCALE
    • CANVAS_ROTATE
    • CANVAS_MIRROR
    • RENDER_CANVAS
    • CANVAS_FROM_WORLD
    • The file format
    • SAVE_CANVAS
    • LOAD_CANVAS
    • Errors
    • Examples
  • c0de_paint/schematics
  • Tutorials
c0de paint 0.2.0
  • Nothing found
Diese Seite auf Deutsch

LOAD_CANVAS ​

Reads a canvas from a file. A file that isn't a canvas file raises SCHEMATIC_INVALID, with the row or entry that is wrong in the message; a voxel outside the limits of a canvas raises CANVAS_LIMIT.

Parameters and results

  • file STRING: the name of the file
  • result result TYPE c0de_paint/cpaint/CANVAS: the canvas

Example

c0de
CALL c0de_paint/cpaint/LOAD_CANVAS
    PARAMETER file "house" ;
    RESULT result house

Used in the tutorials ​

  • Keeping canvases
← Previous pageSAVE_CANVASNext page →Errors
Legal noticePrivacy
Home
  • c0de
  • c0de/math
  • c0de/strings
  • c0de/time
  • c0de/minecraft
  • c0de/security
  • c0de_net/http
  • c0de_net/mail
  • c0de_paint/cpaint
    • Getting started
    • CANVAS
    • STYLE
    • POINT
    • BLOCK
    • STYLE_NONE
    • STYLE_EMPTY
    • STYLE_SOLID
    • STYLE_RANDOM
    • STYLE_GRADIENT
    • STYLE_PATTERN
    • INVENTORY_BLOCKS
    • DRAW_BLOCK
    • DRAW_LINE
    • DRAW_RECTANGLE
    • DRAW_POLYGON
    • DRAW_ELLIPSE
    • DRAW_ARC
    • DRAW_SPIRAL
    • DRAW_BOX
    • DRAW_ELLIPSOID
    • DRAW_CYLINDER
    • DRAW_CONE
    • DRAW_PYRAMID
    • Platonic solids
    • CANVAS_COUNT
    • CANVAS_MIN and CANVAS_MAX
    • CANVAS_GET
    • CANVAS_CLEAR and CANVAS_CROP
    • CANVAS_MOVE
    • CANVAS_REPLACE
    • CANVAS_MERGE
    • CANVAS_MATERIALS
    • CANVAS_ITEMS
    • CANVAS_SCALE
    • CANVAS_ROTATE
    • CANVAS_MIRROR
    • RENDER_CANVAS
    • CANVAS_FROM_WORLD
    • The file format
    • SAVE_CANVAS
    • LOAD_CANVAS
    • Errors
    • Examples
  • c0de_paint/schematics
  • Tutorials