PIXI. CanvasBuffer

new CanvasBuffer(width, height)

Creates a Canvas element of the given size.

Parameters:
Name Type Description
width Number

the width for the newly created canvas

height Number

the height for the newly created canvas

Source - pixi/renderers/canvas/utils/CanvasBuffer.js, line 5

Members

canvas :HTMLCanvasElement

The Canvas object that belongs to this CanvasBuffer.

Source - pixi/renderers/canvas/utils/CanvasBuffer.js, line 31

context :CanvasRenderingContext2D

A CanvasRenderingContext2D object representing a two-dimensional rendering context.

Source - pixi/renderers/canvas/utils/CanvasBuffer.js, line 39

height :Number

The height of the Canvas in pixels.

Source - pixi/renderers/canvas/utils/CanvasBuffer.js, line 23

width :Number

The width of the Canvas in pixels.

Source - pixi/renderers/canvas/utils/CanvasBuffer.js, line 15

Methods

resize(width, height)

Resizes the canvas to the specified width and height.

Parameters:
Name Type Description
width Number

the new width of the canvas

height Number

the new height of the canvas

Source - pixi/renderers/canvas/utils/CanvasBuffer.js, line 65
Phaser Copyright © 2012-2015 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.0-alpha10 on Wed Jul 29 2015 14:58:02 GMT+0100 (GMT Daylight Time) using the DocStrap template.