Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

void sp_color_set_cmyk_float ( SPColor color,
float  c,
float  m,
float  y,
float  k 
)

Sets CMYK values and colorspace in color.

Precondition:
color != NULL && 0 <={c,m,y,k}<=1

Definition at line 151 of file color.cpp.

References SPColor::c, SPColor::colorspace, and SPColor::v.

{
    g_return_if_fail(color != NULL);
    g_return_if_fail(c >= 0.0);
    g_return_if_fail(c <= 1.0);
    g_return_if_fail(m >= 0.0);
    g_return_if_fail(m <= 1.0);
    g_return_if_fail(y >= 0.0);
    g_return_if_fail(y <= 1.0);
    g_return_if_fail(k >= 0.0);
    g_return_if_fail(k <= 1.0);

    color->colorspace = &CMYK;
    color->v.c[0] = c;
    color->v.c[1] = m;
    color->v.c[2] = y;
    color->v.c[3] = k;
}


Generated by  Doxygen 1.6.0   Back to index