the width for the newly created canvas
the height for the newly created canvas
Optional
resolution: numberThe resolution / device pixel ratio of the canvas
A CanvasRenderingContext2D object representing a two-dimensional rendering context.
The height of the canvas buffer in pixels.
The width of the canvas buffer in pixels.
Creates a Canvas element of the given size to be used as a target for rendering to.
Memberof
PIXI.utils