Skip to content

uvRectFromPixels

uvRectFromPixels(rect, textureWidth, textureHeight): UvRect

Defined in: sdk/src/render/uvRect.ts:25

The UV window of a pixel rectangle in a

number

number

number

number

number

number

UvRect

textureWidth x

textureHeight picture, the rectangle’s

y measured DOWN from the top edge as image tools measure it. Spread the result into a Sprite to show exactly that cell.