allc
Version:
A small typescript package for color conversion.
33 lines • 1.39 kB
TypeScript
/**
* Calculates the X component of CIE 1931 XYZ from CIELAB.
* The b component is omitted because it is unnecessary for the conversion.
*
* @param l The luminance component of CIELAB, range [0, 1].
* @param a The a component of CIELAB, unbounded.
*
* @returns The X component of CIE 1931 XYZ.
* @see https://en.wikipedia.org/wiki/CIELAB_color_space#From_CIELAB_to_CIEXYZ
*/
export declare const toCIE1931XYZXFromCIELAB: (l: number, a: number) => number;
/**
* Calculates the Y component of CIE 1931 XYZ from CIELAB.
* The a and b components are omitted because they are unnecessary for the conversion.
*
* @param l The luminance component of CIELAB, range [0, 1].
*
* @returns The Y component of CIE 1931 XYZ.
* @see https://en.wikipedia.org/wiki/CIELAB_color_space#From_CIELAB_to_CIEXYZ
*/
export declare const toCIE1931XYZYFromCIELAB: (l: number) => number;
/**
* Calculates the Z component of CIE 1931 XYZ from CIELAB.
* The a component is omitted because it is unnecessary for the conversion.
*
* @param l The luminance component of CIELAB, range [0, 1].
* @param b The b component of CIELAB, unbounded.
*
* @returns The Z component of CIE 1931 XYZ.
* @see https://en.wikipedia.org/wiki/CIELAB_color_space#From_CIELAB_to_CIEXYZ
*/
export declare const toCIE1931XYZZFromCIELAB: (l: number, b: number) => number;
//# sourceMappingURL=cielab-to-cie-1931-xyz.d.ts.map