allc
Version:
A small typescript package for color conversion.
34 lines • 1.47 kB
TypeScript
/**
* Calculates the red component of RGB from HSV.
*
* @param h The hue component of HSV, in radians.
* @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 red component, typically in the range [0, 1].
* @see https://en.wikipedia.org/wiki/HSL_and_HSV#HSV_to_RGB_alternative
*/
export declare const toRGBRFromHSV: (h: number, s: number, v: number) => number;
/**
* Calculates the green component of RGB from HSV.
*
* @param h The hue component of HSV, in radians.
* @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 green component, typically in the range [0, 1].
* @see https://en.wikipedia.org/wiki/HSL_and_HSV#HSV_to_RGB_alternative
*/
export declare const toRGBGFromHSV: (h: number, s: number, v: number) => number;
/**
* Calculates the blue component of RGB from HSV.
*
* @param h The hue component of HSV, in radians.
* @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 blue component, typically in the range [0, 1].
* @see https://en.wikipedia.org/wiki/HSL_and_HSV#HSV_to_RGB_alternative
*/
export declare const toRGBBFromHSV: (h: number, s: number, v: number) => number;
//# sourceMappingURL=hsv-to-rgb.d.ts.map