import type { Color , ColorOp , ReadonlyColor } from "../api.js" ; import { RGB_XYZ_D50 , RGB_XYZ_D65 } from "../api/constants.js" ; import { clamp } from "../clamp.js" ; import { __mulV33 } from "../internal/matrix-ops.js" ; /**
 * Converts RGB to XYZ using provided transformation matrix (default:
 *  RGB_XYZ_D50 ).
 *
 *  https param out param src param mat export const rgbXyz = ( out , src , mat = RGB_XYZ_D50 ) => __mulV33 ( null , mat , clamp ( out , src ) ) ; /**
 * Same as  rgbXyz , but hard coded to use  D65 white point (via
 *  RGB_XYZ_D65 matrix).
 *
 *  param out param src export const rgbXyzD65 = ( out , src ) => rgbXyz ( out , src , RGB_XYZ_D65 ) ;