Class: TextureUvs

PIXI.TextureUvs

A standard object to store the Uvs of a texture

new PIXI.TextureUvs () protected

Members

x0 number

The position of the top-left corner on the x axis.

x1 number

The position of the top-right corner on the x axis.

x2 number

The position of the bottom-right corner on the x axis.

x3 number

The position of the bottom-left corner on the x axis.

y0 number

The position of the top-left corner on the y axis.

y1 number

The position of the top-right corner on the y axis.

y2 number

The position of the bottom-right corner on the y axis.

y3 number

The position of the bottom-left corner on the y axis.

Methods

set (frame, baseFrame, rotate) protected

Sets the texture Uvs based on the given frame information.

Name Type Description
frame PIXI.Rectangle

The frame of the texture

baseFrame PIXI.Rectangle

The base frame of the texture

rotate number

Rotation of frame, see PIXI.GroupD8