@ginden/blinkstick-v2
Version:
Improved Blickstick API for Node.js
16 lines • 653 B
TypeScript
import type { RgbTuple } from '../../types';
import type { ConditionalPick, JsonValue } from 'type-fest';
import type { ColorInput } from '../../types';
/**
* SimpleFrame represents a single frame of animation with a specific color and duration.
* @category Animation
*/
export declare class SimpleFrame {
readonly duration: number;
readonly rgb: RgbTuple;
static fromProperties(props: ConditionalPick<SimpleFrame, JsonValue>): SimpleFrame;
static colorAndDuration(color: ColorInput, duration: number): SimpleFrame;
constructor(rgb: RgbTuple, duration: number);
toString(): string;
}
//# sourceMappingURL=simple-frame.d.ts.map