UNPKG

@thi.ng/color

Version:

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

22 lines 636 B
import { type XYZD65 } from "./xyz65.js"; /** * Computes XYZA for given wavelength (in nanometers) and optional alpha channel * (default: 1), writes result into `out` (or a new array if null). * * @remarks * Reference: https://en.wikipedia.org/wiki/CIE_1931_color_space#Analytical_approximation * * Primary hues (approx. wavelengths): * * - 460 => blue * - 490 => cyan * - 530 => green * - 570 => yellow * - 610 => red * * @param out - * @param lambda - * @param alpha - */ export declare const wavelengthXyz: (out: XYZD65 | null, lambda: number, alpha?: number) => XYZD65; //# sourceMappingURL=wavelength-xyz.d.ts.map