The 2D layer · interface

SpriteRegion

A rectangle of a sprite image, in its texels from the top left: what updateTexture copies, from the image into the slot's texture at the same place.

Explained in Sprites and tilemaps.

interface SpriteRegion
import type { SpriteRegion } from '@driftengine/ui2d';

Properties

NameTypeDescription
xreadonlynumber
yreadonlynumber
widthreadonlynumber
heightreadonlynumber