These function convert colors between RGB and CMYK system.

RgbToCmy(col, maxColorValue = 1)
CmykToRgb(cyan, magenta, yellow, black, maxColorValue=1)
CmyToCmyk(col)
CmykToCmy(col)

Arguments

col

the matrix of the color to be converted

cyan

cyan values of the color(s) to be converted

magenta

magenta values of the color(s) to be converted

yellow

yellow values of the color(s) to be converted

black

black values of the color(s) to be converted

maxColorValue

the value for the color

Value

the converted value

Author

Andri Signorell <andri@signorell.net>

See also

Examples

CmykToRgb(0.42, 45.23, 85.14, maxColorValue=100)
#> [1] "#FE8C26"