Function: rgbToCmyk()
rgbToCmyk(
rgb):CMYK
Converts RGB values to CMYK values.
Parameters
| Parameter | Type | Description | 
|---|---|---|
rgb | RGB | An object with r, g, and b properties. | 
Returns
An object with c, m, y, and k properties.
Throws
If the input is not a valid RGB object or if RGB values are out of range.
Defined in
conversions/components/cmyk.ts:41