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
x0

X-component of top-left corner (x0,y0).

number
x1

X-component of top-right corner (x1,y1).

number
x2

X-component of bottom-right corner (x2,y2).

number
x3

X-component of bottom-left corner (x3,y3).

number
y0

Y-component of top-left corner (x0,y0).

number
y1

Y-component of top-right corner (x1,y1).

number
y2

Y-component of bottom-right corner (x2,y2).

number
y3

Y-component of bottom-right corner (x3,y3).

Methods from TextureUvs

void
protected set(frame: PIXI.Rectangle, baseFrame: ISize, rotate: number)

Public Properties


x0 TextureUvs.ts:21
x0: number

X-component of top-left corner (x0,y0).

x1 TextureUvs.ts:27
x1: number

X-component of top-right corner (x1,y1).

x2 TextureUvs.ts:33
x2: number

X-component of bottom-right corner (x2,y2).

x3 TextureUvs.ts:39
x3: number

X-component of bottom-left corner (x3,y3).

y0 TextureUvs.ts:24
y0: number

Y-component of top-left corner (x0,y0).

y1 TextureUvs.ts:30
y1: number

Y-component of top-right corner (x1,y1).

y2 TextureUvs.ts:36
y2: number

Y-component of bottom-right corner (x2,y2).

y3 TextureUvs.ts:42
y3: number

Y-component of bottom-right corner (x3,y3).

Protected Methods


set TextureUvs.ts:60
protected set(frame: PIXI.Rectangle, baseFrame: ISize, rotate: number) → {void}

Sets the texture Uvs based on the given frame information.

Parameters:
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

Returns:
Type Description
void

Powered by webdoc!