colorDiff method
Calculate color difference between two colors. Helper method for goog.color.highContrast() @param {goog.color.Rgb} rgb1 Colour represented by a rgb array. @param {goog.color.Rgb} rgb2 Colour represented by a rgb array. @return {number} Colour difference. @private
Implementation
int colorDiff(RgbColour rgb1)
{
return (rgb1.red - red).abs() + (rgb1.green - green).abs() + (rgb1.blue - blue).abs();
}