When this component is added to an entity it will be drawn to the global canvas element. The canvas element (and hence all Canvas entities) is always rendered below any DOM entities.
Crafty.canvas.init() will be automatically called if it is not called already to initialize the canvas element.
Create a canvas entity like this
var myEntity = Crafty.e("2D, Canvas, Color").color("green")
.attr({x: 13, y: 37, w: 42, h: 42});
public this .draw([[Context ctx, ]Number x, Number y, Number w, Number h])
Method to draw the entity on the canvas element. Can pass rect values for redrawing a segment of the entity.