@thi.ng/color
Version:
Array-based color types, CSS parsing, conversions, transformations, declarative theme generation, gradients, presets
21 lines • 670 B
TypeScript
import type { Color, ColorOp, ReadonlyColor } from "../api.js";
/**
* Converts RGB to XYZ using provided transformation matrix (default:
* {@link RGB_XYZ_D50}).
*
* https://en.wikipedia.org/wiki/CIE_1931_color_space
*
* @param out - result
* @param src - source color
* @param mat - transform matrix
*/
export declare const rgbXyz: (out: Color | null, src: ReadonlyColor, mat?: number[]) => import("@thi.ng/vectors").Vec<number>;
/**
* Same as {@link rgbXyz}, but hard coded to use {@link D65} white point (via
* {@link RGB_XYZ_D65} matrix).
*
* @param out -
* @param src -
*/
export declare const rgbXyzD65: ColorOp;
//# sourceMappingURL=rgb-xyz.d.ts.map