hcGetBrightness method

double hcGetBrightness()

Returns Brightness of give Color

Implementation

double hcGetBrightness() => (red * 299 + green * 587 + blue * 114) / 1000;