getColorBrightness

fun getColorBrightness(r: Float, g: Float, b: Float): Float

Returns the brightness of the specified color values in 0.0-1.0 range.