UNPKG

@pajn/node-tradfri-client

Version:

Library to talk to IKEA Trådfri Gateways without external binaries

31 lines (30 loc) 949 B
export interface ColorDefinition { /** X coordinate in the CIE color space */ colorX: number; /** Y coordinate in the CIE color space */ colorY: number; hue: number; saturation: number; hue_raw: number; saturation_raw: number; /** Color temperature in Mired (if defined) */ temperature?: number; /** RGB hex color */ rgbHex: string; } /** * The maximum value of color related numbers in Tradfri */ export declare const MAX_COLOR: number; /** * All predefined RGB colors in the app */ export declare const predefinedColors: Map<string, ColorDefinition>; /** * The hex colors for the white spectrum and the corresponding colorTemperature values, sorted from cold to warm */ export declare const whiteSpectrumHex: Record<string, number>; /** * The white spectrum [cold, warm] in Mireds, as defined in the app */ export declare const colorTemperatureRange: number[];