UNPKG

@diffusionstudio/core-v4

Version:

2D motion graphics and video rendering engine

10 lines (9 loc) 397 B
import { Timestamp } from '../models'; import { KeyframeOptions, Percent } from '../types'; /** * Interpolates a number between two keyframes * @param options - The keyframe options * @param timestamp - The current timestamp * @returns The interpolated value */ export declare function interpolateNumber<T extends number | Percent>(options: KeyframeOptions<any, T>, timestamp: Timestamp): T;