PIXI.TextureUvs
protected class TextureUvs
Stores a texture's frame in UV coordinates, in
which everything lies in the rectangle [(0,0), (1,0), (1,1), (0,1)].
| Corner | Coordinates |
|---|---|
| Top-Left | (x0,y0) |
| Top-Right | (x1,y1) |
| Bottom-Right | (x2,y2) |
| Bottom-Left | (x3,y3) |
Summary
Properties from TextureUvs
| number |
X-component of top-left corner |
| number |
X-component of top-right corner |
| number |
X-component of bottom-right corner |
| number |
X-component of bottom-left corner |
| number |
Y-component of top-left corner |
| number |
Y-component of top-right corner |
| number |
Y-component of bottom-right corner |
| number |
Y-component of bottom-right corner |
Methods from TextureUvs
| void |
|
Public Properties
Protected Methods
protected set(frame: PIXI.Rectangle, baseFrame: ISize, rotate: number) → {void}
Sets the texture Uvs based on the given frame information.
| Name | Type | Description |
|---|---|---|
| frame | PIXI.Rectangle |
The frame of the texture |
| baseFrame | ISize |
The base frame of the texture |
| rotate | number |
Rotation of frame, see PIXI.groupD8 |
| Type | Description |
|---|---|
| void |