This function calculates a distance measure that aims to quantify the
perceptual difference between a vector of colours and a reference colour.
The measure in question is the CIE Delta E (2000), which is calculated based
on colour coordinates in Lab space.
Usage
distance(shades, reference)
Arguments
shades
One or more colours, in any suitable form (see
shade).