allc
Version:
A small typescript package for color conversion.
34 lines • 1.49 kB
TypeScript
/**
* Calculates the red component of RGB from HSI.
*
* @param h The HSI hue component, sometimes called _h6_, in radians.
* @param s The HSI saturation component, typically in the range [0, 1].
* @param i The HSI intensity component, 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#HSI_to_RGB
*/
export declare const toRGBRFromHSI: (h: number, s: number, i: number) => number;
/**
* Calculates the green component of RGB from HSI.
*
* @param h The HSI hue component, sometimes called _h6_, in radians.
* @param s The HSI saturation component, typically in the range [0, 1].
* @param i The HSI intensity component, 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#HSI_to_RGB
*/
export declare const toRGBGFromHSI: (h: number, s: number, i: number) => number;
/**
* Calculates the blue component of RGB from HSI.
*
* @param h The HSI hue component, sometimes called _h6_, in radians.
* @param s The HSI saturation component, typically in the range [0, 1].
* @param i The HSI intensity component, 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#HSI_to_RGB
*/
export declare const toRGBBFromHSI: (h: number, s: number, i: number) => number;
//# sourceMappingURL=hsi-to-rgb.d.ts.map