UNPKG

@ginden/blinkstick-v2

Version:
18 lines 729 B
import type { RgbTuple } from '../../types/rgb-tuple'; import { SimpleFrame } from './simple-frame'; /** * Complex frame represents a single frame of animation with multiple colors and a specific duration. * @category Animation */ export declare class ComplexFrame { duration: number; /** * An array of RGB tuples representing the colors to be displayed. * The length of the array should be equal to the number of LEDs. */ colors: RgbTuple[]; constructor(colors: RgbTuple[], duration: number); static fromSimpleFrame(frame: SimpleFrame, ledCount: number): ComplexFrame; static createValid(colors: RgbTuple[], duration: number): ComplexFrame; } //# sourceMappingURL=complex-frame.d.ts.map