Logo Search packages:      
Sourcecode: inkscape version File versions

void sp_color_get_rgb_floatv ( SPColor const *  color,
float *  rgb 
)

Fill rgb float array with values from SPColor.

Precondition:
color != NULL && rgb != NULL && rgb[0-2] is meaningful

Definition at line 216 of file color.cpp.

Referenced by Inkscape::Extension::Internal::PovOutput::doCurve(), and objects_query_fillstroke().

{
    g_return_if_fail (color != NULL);
    g_return_if_fail (rgb != NULL);

    rgb[0] = color->v.c[0];
    rgb[1] = color->v.c[1];
    rgb[2] = color->v.c[2];
}


Generated by  Doxygen 1.6.0   Back to index