CanvasRenderer#CanvasRenderer

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)
doc_phaser
2017-02-14 10:41:11
Comments
Leave a Comment

Please login to continue.