@tempots/color > rgb2xyz
Converts an RGB color to XYZ color space.
Signature:
rgb2xyz: (rgb: RGB) => XYZ
Parameter
Type
Description
rgb
RGB
The RGB color to convert.
Returns: XYZ
The corresponding XYZ color.