@tempots/color

xyz2rgb() function

Converts XYZ color space to RGB color space.

Signature:

xyz2rgb: (xyz: XYZ) => RGB

Parameters

Parameter

Type

Description

xyz

XYZ

The XYZ color to convert.

Returns: RGB

The RGB color in the RGB color space.