BaseTexture.fromCanvas()

<static> fromCanvas(canvas, scaleMode) → {PIXI.BaseTexture}

Helper function that creates a base texture from the given canvas element.

Parameters
Name Type Description
canvas Canvas

The canvas element source of the texture

scaleMode Number

See {{#crossLink "PIXI/scaleModes:property"}}PIXI.scaleModes{{/crossLink}} for possible values

Returns
Source code: pixi/textures/BaseTexture.js (Line 224)
doc_phaser
2017-02-14 10:36:28
Comments
Leave a Comment

Please login to continue.