@tempots/color

rgb2srgb() function

Converts an RGB color to an sRGB color.

Signature:

rgb2srgb: (rgb: RGB) => SRGB

Parameters

Parameter

Type

Description

rgb

RGB

The RGB color to convert.

Returns: SRGB

The converted sRGB color.