1681-engine / index / AsepriteFrame
Interface: AsepriteFrame ​
Defined in: src/anim/asepriteTypes.ts:84
A frame of the sheet, by its index (the texture frame's name is that index as a string).
Properties ​
duration ​
duration: number;Defined in: src/anim/asepriteTypes.ts:91
Milliseconds.
index ​
index: number;Defined in: src/anim/asepriteTypes.ts:85
name ​
name: string;Defined in: src/anim/asepriteTypes.ts:87
Aseprite's file name for the frame ("hero 3.aseprite"); look a frame up by it with frameNamed.
offsetX ​
offsetX: number;Defined in: src/anim/asepriteTypes.ts:96
Where the trimmed rect sits inside the untrimmed sprite (0, 0 when not trimmed).
offsetY ​
offsetY: number;Defined in: src/anim/asepriteTypes.ts:97
rect ​
rect: AsepriteRect;Defined in: src/anim/asepriteTypes.ts:89
Where it lies on the sheet image.
sourceH ​
sourceH: number;Defined in: src/anim/asepriteTypes.ts:94
sourceW ​
sourceW: number;Defined in: src/anim/asepriteTypes.ts:93
The untrimmed size of the sprite.
trimmed ​
trimmed: boolean;Defined in: src/anim/asepriteTypes.ts:98