Skip to content

@blooper.gg/toodle


@blooper.gg/toodle / textures/types / TextureRegion

Type Alias: TextureRegion

TextureRegion = UvRegion & object

Defined in: textures/types.ts:16

A TextureRegion is a region of the texture atlas in normalized texels.

It is a combination of a UvRegion and a cropOffset.

Type declaration

cropOffset

cropOffset: Vec2

the offset from the top left of the texture in texels to begin drawing

originalSize

originalSize: Size

the original size of the texture in texels