Logo Search packages:      
Sourcecode: inkscape version File versions

bool SPColor::isClose ( SPColor const &  other,
float  epsilon 
) const

Returns true if no RGB value differs epsilon or more in both colors, false otherwise.

Definition at line 97 of file color.cpp.

References c, icc, and v.

{
    bool match = false;

    match = (fabs((v.c[0]) - (other.v.c[0])) < epsilon)
        && (fabs((v.c[1]) - (other.v.c[1])) < epsilon)
        && (fabs((v.c[2]) - (other.v.c[2])) < epsilon);

    match &= profileMatches( icc, other.icc );

    return match;
}


Generated by  Doxygen 1.6.0   Back to index