allc
Version:
A small typescript package for color conversion.
27 lines • 994 B
TypeScript
/**
* Calculates the chroma component of LCH from LAB.
* The luminance component of LCH is omitted because it is unnecessary for the computation.
*
* This function is color space invariant.
*
* @param a The a component of LAB, unbounded.
* @param b The b component of LAB, unbounded.
*
* @returns The chroma component of LCH.
* @see https://bottosson.github.io/posts/oklab/#the-oklab-color-space
*/
export declare const toLCHCFromLAB: (a: number, b: number) => number;
/**
* Calculates the hue component of LCH from LAB.
* The luminance component of LCH is omitted because it is unnecessary for the computation.
*
* This function is color space invariant.
*
* @param a The a component of LAB, unbounded.
* @param b The b component of LAB, unbounded.
*
* @returns The hue component of LCH.
* @see https://bottosson.github.io/posts/oklab/#the-oklab-color-space
*/
export declare const toLCHHFromLAB: (a: number, b: number) => number;
//# sourceMappingURL=lab-to-lch.d.ts.map