UNPKG

allc

Version:

A small typescript package for color conversion.

23 lines 1.04 kB
/** * Calculates the lightness component of HSL from HSV. * The hue component is omitted because it is unnecessary for the computation. * * @param s The saturation component of HSV, typically in the range [0, 1]. * @param v The value component of HSV, typically in the range [0, 1]. * * @returns The lightness component of HSL, typically in the range [0, 1]. * @see https://en.wikipedia.org/wiki/HSL_and_HSV#HSV_to_HSL */ export declare const toHSLLFromHSV: (s: number, v: number) => number; /** * Calculates the saturation component of HSL from HSV. * The hue component is omitted because it is unnecessary for the computation. * * @param s The saturation component of HSV, typically in the range [0, 1]. * @param v The value component of HSV, typically in the range [0, 1]. * * @returns The saturation component of HSL, typically in the range [0, 1]. * @see https://en.wikipedia.org/wiki/HSL_and_HSV#HSV_to_HSL */ export declare const toHSLSFromHSV: (s: number, v: number) => number; //# sourceMappingURL=hsv-to-hsl.d.ts.map