Logo Search packages:      
Sourcecode: inkscape version File versions

void sp_color_cmyk_to_rgb_floatv ( float *  rgb,
float  c,
float  m,
float  y,
float  k 
)

Fill rgb float array from c,m,y,k float values.

Definition at line 426 of file color.cpp.

{
    float kd;

    kd = 1.0 - k;

    c = c * kd;
    m = m * kd;
    y = y * kd;

    c = c + k;
    m = m + k;
    y = y + k;

    rgb[0] = 1.0 - c;
    rgb[1] = 1.0 - m;
    rgb[2] = 1.0 - y;
}


Generated by  Doxygen 1.6.0   Back to index