@tempots/color

srgb2xyz() function

Converts an sRGB color to XYZ color space.

Signature:

srgb2xyz: (srgb: SRGB) => XYZ

Parameters

Parameter

Type

Description

srgb

SRGB

The sRGB color to convert.

Returns: XYZ

The corresponding XYZ color.