UNPKG

@ginden/blinkstick-v2

Version:
15 lines 636 B
import type { FrameIterable } from '../animation-description'; import type { Frame } from '../frame/frame'; /** * **Streaming** FPS smoother. * * Guarantees that no more than `maxFps` frames per second are produced **while * preserving the original animation duration**. Colours inside every output * slice are calculated as the duration-weighted average of the covered source * frames. Works with both `Iterable` and `AsyncIterable` sources. * * @experimental * @category Animation */ export declare function smoothFps(animation: FrameIterable, maxFps?: number): AsyncIterable<Frame>; //# sourceMappingURL=smooth-fps.d.ts.map