The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



CMYtoRGB


Unit:SDL_sdlcolors
Class:none
Declaration:procedure CMYtoRGB (Cyan, Magenta, Yellow: double; var R, G, B: byte);

The function CMYtoRGB transforms a color defined in the CMY color space by the parameters Cyan, Magenta, and Yellow (valid ranges: 0 .. 1.0) into the RGB color space. The variable parameters R, G, and B return values in the range between 0 and 255.

Hint: The CMY color system describes a color based on the amounts of the base colors cyan, magenta, and yellow. Thus, a particular color has three coordinates [C,M,Y], with the coordinates lying between 0.0 and 1.0. Please note that the CMY model is a subtractive model, thus black is [1,1,1] and white is [0,0,0].



Last Update: 2023-Feb-06