new BaseTexture(source, scaleMode)
A texture stores the information that represents an image. All textures have a base texture.
Parameters
Name | Type | Description |
---|---|---|
source | String | Canvas | the source object (image or canvas) |
scaleMode | Number | See {{#crossLink "PIXI/scaleModes:property"}}PIXI.scaleModes{{/crossLink}} for possible values |
- Source code: pixi/textures/BaseTexture.js (Line 5)
Please login to continue.