Test whether the two colors are effectively the same.
Colors are considered equal if they have the same ColorSpace, the same number and values of color Components and the same Name. This represents value equality for the colors in question.
The underlying components of a color are represented as floating point numbers. Floating point numbers are subject to rounding errors, so there has to be a degree of latitude when comparing color values. The degree of latitude is, by default, determined by the color space. CMYK values use a percentage based scale so the value used to determine the resolution of the comparison is 1%. Other color spaces use an eight bit scale so the resolution of comparison is 1/256.
|