getColourLuma method

double getColourLuma()

Returns the color intensity (luma) for the specified color Value ranges from 0..1

Implementation

double getColourLuma()
{
  return (0.3 * red + 0.59 * green + 0.11 * blue) / 255.0;
}