UNPKG

allc

Version:

A small typescript package for color conversion.

27 lines 1.05 kB
/** * Calculates the a component of LAB from LCH. * The luminance component of LCH is omitted because it is unnecessary for the computation. * * This function is color space invariant. * * @param c The chroma component of LCH, non-negative, unbounded. * @param h The hue component of LCH, unbounded, in radians. * * @returns The a component of LCH. * @see https://bottosson.github.io/posts/oklab/#the-oklab-color-space */ export declare const toLABAFromLCH: (c: number, h: number) => number; /** * Calculates the b component of LAB from LCH. * The luminance component of LCH is omitted because it is unnecessary for the computation. * * This function is color space invariant. * * @param c The chroma component of LCH, non-negative, unbounded. * @param h The hue component of LCH, unbounded, in radians. * * @returns The b component of LCH. * @see https://bottosson.github.io/posts/oklab/#the-oklab-color-space */ export declare const toLABBFromLCH: (c: number, h: number) => number; //# sourceMappingURL=lch-to-lab.d.ts.map