ColorDistance function

Computes the perceptional distance between two neighboring colors