static float colorDistance(RGB a, RGB b) { ret rgbDiff(a, b); } // 0xRRGGBB - result is between 0 and 1 static float colorDistance(int a, int b) { ret rgbDiff(a, b); }