UNPKG

@thi.ng/color

Version:

Array-based color types, CSS parsing, conversions, transformations, declarative theme generation, gradients, presets

20 lines 652 B
import type { Color, ColorOp, ReadonlyColor } from "../api.js"; /** * Converts CIE XYZ to RGB using provided transformation/whitepoint matrix * (default: {@link XYZ_RGB_D50}). * * https://en.wikipedia.org/wiki/CIE_1931_color_space * * @param out - result * @param src - source color */ export declare const xyzRgb: (out: Color | null, src: ReadonlyColor, mat?: number[]) => import("@thi.ng/vectors").Vec<number>; /** * Same as {@link xyzRgb}, but hard coded to use {@link D65} white point (via * {@link XYZ_RGB_D65} matrix). * * @param out - * @param src - */ export declare const xyzRgbD65: ColorOp; //# sourceMappingURL=xyz-rgb.d.ts.map