<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)
Please login to continue.