static int ColorWeight(int red, int green, int blue) { return 3 * red * red + 6 * green * green + 2 * blue * blue; }