new CanvasRenderer(game)
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.
Don't forget to add the CanvasRenderer.view to your DOM or you will not see anything :)
Parameters
Name | Type | Description |
---|---|---|
game | PhaserGame | A reference to the Phaser Game instance |
- Source code: pixi/renderers/canvas/CanvasRenderer.js (Line 5)
Please login to continue.