UNPKG

allc

Version:

A small typescript package for color conversion.

33 lines 1.32 kB
/** * Calculates the lightness component of CIELAB from CIE 1931 XYZ. * The X and Z components are omitted because they are unnecessary for the conversion. * * @param y The Y component of CIE 1931 XYZ. * * @returns The lightness component of CIELAB. * @see https://en.wikipedia.org/wiki/CIELAB_color_space#From_CIE_XYZ_to_CIELAB */ export declare const toCIELABLFromCIE1931XYZ: (y: number) => number; /** * Calculates the a component of CIELAB from CIE 1931 XYZ. * The Z component is omitted because it is unnecessary for the conversion. * * @param x The X component of CIE 1931 XYZ. * @param y The Y component of CIE 1931 XYZ. * * @returns The a component of CIELAB. * @see https://en.wikipedia.org/wiki/CIELAB_color_space#From_CIE_XYZ_to_CIELAB */ export declare const toCIELABAFromCIE1931XYZ: (x: number, y: number) => number; /** * Calculates the b component of CIELAB from CIE 1931 XYZ. * The X component is omitted because it is unnecessary for the conversion. * * @param y The Y component of CIE 1931 XYZ. * @param z The Z component of CIE 1931 XYZ. * * @returns The b component of CIELAB. * @see https://en.wikipedia.org/wiki/CIELAB_color_space#From_CIE_XYZ_to_CIELAB */ export declare const toCIELABBFromCIE1931XYZ: (y: number, z: number) => number; //# sourceMappingURL=to-cielab.d.ts.map