calculateLuminance

@FloatRange(from = 0.0, to = 1.0)
open fun calculateLuminance(@ColorInt color: Int): Double(source)

Returns the luminance of a color as a float between 0.0 and 1.0.

Defined as the Y component in the XYZ representation of color.