UNPKG

@tolokoban/tgd

Version:

ToloGameDev library for WebGL2

24 lines 566 B
export interface TgdAnimation { /** * @param alpha Value between 0 and 1 */ action(this: void, alpha: number): void; /** * Duration of the animation in milliseconds. */ duration: number; /** * number of times the animation should repeat. * Default to 1. */ repeat?: number; /** * Default to linear. */ easingFunction?(this: void, x: number): number; /** * Function to call when the animation is over. */ onEnd?(this: void): void; } //# sourceMappingURL=animation.d.ts.map