relativeLuminanceRgb function
Returns WCAG-style relative luminance for explicit sRGB channels.
The result is normalized between 0.0 (black) and 1.0 (white).
Implementation
double relativeLuminanceRgb(int red, int green, int blue) {
return _relativeLuminanceFromRgb(red, green, blue);
}