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