getLuminanceRgb function Null safety
Returns the luminance (grayscale) value of the color.
Implementation
int getLuminanceRgb(int r, int g, int b) =>
(0.299 * r + 0.587 * g + 0.114 * b).round();
Returns the luminance (grayscale) value of the color.
int getLuminanceRgb(int r, int g, int b) =>
(0.299 * r + 0.587 * g + 0.114 * b).round();