Texture#Texture

new Texture(baseTexture, frame, crop, trim)

A texture stores the information that represents an image or part of an image. It cannot be added
to the display list directly. Instead use it as the texture for a PIXI.Sprite. If no frame is provided then the whole image is used.

Parameters
Name Type Argument Description
baseTexture PIXI.BaseTexture

The base texture source to create the texture from

frame Rectangle

The rectangle frame of the texture to show

crop Rectangle <optional>

The area of original texture

trim Rectangle <optional>

Trimmed texture rectangle

Source code: pixi/textures/Texture.js (Line 14)
doc_phaser
2017-02-14 11:14:52
Comments
Leave a Comment

Please login to continue.