Show Canvas
Description
'show canvas <object_id> <mode> [with [...classes]]'Parameters
Name
Optional
Description
Canvas Objects
{
layers: [],
props: {},
state: {},
start: function (layers, props, state, container) {
// In here we do everything we need to start
// our canvas and perform the updates
// Note: 'this' refers to the Monogatari engine instance
},
stop: function (layers, props, state, container) {
// Any actions we need to perform to stop the
// canvas such as canceling animations and
// freeing resources before the element gets removed
// Note: 'this' refers to the Monogatari engine instance
},
resize: function (layers, props, state, container) {
// Perform any actions required when the window
// gets resized, it's useful for reacting to this
// changes by changing your canvas width and height.
// Note: 'this' refers to the Monogatari engine instance
},
}Property
Type
Description
Showing as a background

Defining the Object
Using it in our script
Last updated
Was this helpful?