Description

Manipulate elements on the scene.

  1. Create an element with the createElement method :

    canvas.Scene.new({
        name: "MyScene",
        ready: function(stage) {
            var element = this.createElement(); // new Element object
        }
    });
    
  2. Add this element in the stage :

    canvas.Scene.new({
        name: "MyScene",
        ready: function(stage) {
            var element = this.createElement();
            stage.append(element); // add in the stage
        }
    });
    

Example

Discussion