static int getLuminanceRgb(int red, int green, int blue) => (0.299 * red + 0.587 * green + 0.114 * blue).round();