@tempots/color

rgb2cmyk() function

Converts an RGB color to CMYK color representation.

Signature:

rgb2cmyk: (rgb: RGB) => CMYK

Parameters

Parameter

Type

Description

rgb

RGB

The RGB color to convert.

Returns: CMYK

The CMYK color representation.