UNPKG

speech-rule-engine

Version:

A standalone speech rule engine for XML structures, based on the original engine from ChromeVox.

38 lines (37 loc) 842 B
interface NamedColor { color: string; alpha?: number; } interface ChannelColor { red: number; green: number; blue: number; alpha?: number; } export interface StringColor { background: string; alphaback?: string; foreground: string; alphafore?: string; } export type Color = ChannelColor | NamedColor; export declare class ColorPicker { private static DEFAULT_BACKGROUND_; private static DEFAULT_FOREGROUND_; foreground: ChannelColor; background: ChannelColor; private static toHex; constructor(background: Color, foreground?: Color); rgba(): StringColor; rgb(): StringColor; hex(): StringColor; } export declare class ContrastPicker { hue: number; sat: number; light: number; incr: number; generate(): string; increment(): void; } export {};