BaseTexture

Class: PIXI.BaseTexture

Constructor

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

登录查看完整内容