UNPKG

allc

Version:

A small typescript package for color conversion.

34 lines 1.49 kB
/** * Calculates the red component of RGB from HSL. * * @param h The hue component of HSL, in radians. * @param s The saturation component of HSL, typically in the range [0, 1]. * @param l The lightness component of HSL, typically in the range [0, 1]. * * @returns The red component, typically in the range [0, 1]. * @see https://en.wikipedia.org/wiki/HSL_and_HSV#HSL_to_RGB_alternative */ export declare const toRGBRFromHSL: (h: number, s: number, l: number) => number; /** * Calculates the green component of RGB from HSL. * * @param h The hue component of HSL, in radians. * @param s The saturation component of HSL, typically in the range [0, 1]. * @param l The lightness component of HSL, typically in the range [0, 1]. * * @returns The green component, typically in the range [0, 1]. * @see https://en.wikipedia.org/wiki/HSL_and_HSV#HSL_to_RGB_alternative */ export declare const toRGBGFromHSL: (h: number, s: number, l: number) => number; /** * Calculates the blue component of RGB from HSL. * * @param h The hue component of HSL, in radians. * @param s The saturation component of HSL, typically in the range [0, 1]. * @param l The lightness component of HSL, typically in the range [0, 1]. * * @returns The blue component, typically in the range [0, 1]. * @see https://en.wikipedia.org/wiki/HSL_and_HSV#HSL_to_RGB_alternative */ export declare const toRGBBFromHSL: (h: number, s: number, l: number) => number; //# sourceMappingURL=hsl-to-rgb.d.ts.map