BaseTexture#BaseTexture

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)
doc_phaser
2017-02-14 10:36:24
Comments
Leave a Comment

Please login to continue.