UNPKG

826 BTypeScriptView Raw
1/**
2 * @group Utils
3 */
4export declare class ColorUtils {
5 /**
6 * Returns the Hue and Saturation representation of the given color temperature in mired.
7 *
8 * @param colorTemperature - The color temperature in mired.
9 * @param roundResults - The lookup table has a precision of .1 decimal places. The given characteristics only have a step value of 1.
10 * Thus, the method will round the results by default to an integer value. This can be turned off using this option.
11 * @returns An number array of length 2 with the first element being the saturation and the second argument being the hue.
12 */
13 static colorTemperatureToHueAndSaturation(colorTemperature: number, roundResults?: boolean): {
14 saturation: number;
15 hue: number;
16 };
17}
18//# sourceMappingURL=color-utils.d.ts.map
\No newline at end of file