Learn R Programming

DescTools (version 0.99.37)

RgbToCmy: Conversion Between RGB and CMYK

Description

These function convert colors between RGB and CMYK system.

Usage

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

See Also

RgbToCol

Examples

Run this code
# NOT RUN {
CmykToRgb(0.42, 45.23, 85.14, maxColorValue=100)
# }

Run the code above in your browser using DataLab