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 :)
Constructor
CanvasRenderer
    
        
            (
    
    
    
    
    
    
    
    
    
    - 
                    
                        width
- 
                    
                        height
- 
                    
                        view
- 
                    
                        transparent
Parameters:
- 
                    
                        widthNumberthe width of the canvas view 
- 
                    
                        heightNumberthe height of the canvas view 
- 
                    
                        viewCanvasthe canvas to use as a view, optional 
- 
                    
                        transparentBooleanthe transparency of the render view, default false 
Methods
render
    
        
            (
    
    
    
    
    
    
    
    
    
    - 
                    
                        stage
Renders the stage to its canvas view
Parameters:
- 
                    
                        stageStagethe 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
