core-ktx / androidx.graphics / kotlin.Long / luminance

luminance

inline val Long.luminance: Float

Returns the relative luminance of a color. Based on the formula for relative luminance defined in WCAG 2.0, W3C Recommendation 11 December 2008.