@thi.ng/color
Version:
Array-based color types, CSS parsing, conversions, transformations, declarative theme generation, gradients, presets
22 lines • 704 B
TypeScript
import type { Color, ColorOp, ReadonlyColor } from "../api.js";
/**
* Converts XYZ to Lab, using provided reference white point (default:
* {@link D50}). Also see {@link xyzLabD65}.
*
* @remarks
* Important: We're using a normalized Lab space w/ all three coordinates
* divided by 100 (normalized to 100% luminance).
*
* @param out -
* @param src -
* @param white -
*/
export declare const xyzLab: (out: Color | null, src: ReadonlyColor, white?: number[]) => import("@thi.ng/vectors").Vec<number>;
/**
* Same as {@link xyzLab}, but hard coded to use {@link D65} white point.
*
* @param out -
* @param src -
*/
export declare const xyzLabD65: ColorOp;
//# sourceMappingURL=xyz-lab.d.ts.map