API Docs for: 0.9
Show:

CanvasRenderer Class

the CanvasRenderer draws the stage and all its content onto a 2d canvas. This renderer should be used for browsers that do not support webGL. Dont forget to add the view to your DOM or you will not see anything :)

Item Index

Methods

Properties

Methods

render

(
  • stage
)

Renders the stage to its canvas view

Parameters:

  • stage Stage

    the Stage element to be rendered

Properties

context

Canvas 2d Context

The canvas context that the everything is drawn to

height

Number

The height of the canvas view

Default: 600

view

Canvas

The canvas element that the everything is drawn to

width

Number

The width of the canvas view

Default: 800