ridder
Version:
A straightforward game engine for simple data-driven games in JavaScript
11 lines (10 loc) • 504 B
TypeScript
import { EasingDictionary } from "./easings.js";
/**
* Return the value between {@link start} and {@link end} using the {@link easing} function, based on the elapsed time.
*
* @see {@link EasingDictionary} for the list of possible easing functions.
*
* @see {@link https://github.com/patrickswijgman/ridder/blob/main/examples/tween/index.ts} for an example.
*
*/
export declare function tween(start: number, end: number, duration: number, easing: keyof EasingDictionary, elapsed: number): number;