Interface: LuminosityUtil
The LuminosityUtil Interface exposes a method for calculating the luminosity using the given R, G, and B components:
Methods:
<float>LuminosityUtil.illumination <float>r <float>g <float>b
Returns the illumination based on the supplied Red, Green and Blue values.
Note that the contribution of the Red, Green and Blue channels is not identical:
EXAMPLE:
LuminosityUtil.illumination 255 255 255 255.0 LuminosityUtil.illumination 255 0 0 67.575 LuminosityUtil.illumination 0 255 0 170.85 LuminosityUtil.illumination 0 0 255 16.575 LuminosityUtil.illumination 255 255 0 238.425 LuminosityUtil.illumination 255 0 255 84.15 LuminosityUtil.illumination 0 255 255 187.425