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

component3

inline operator fun Long.component3(): Float

Returns the third component of the color. For instance, when the color model of the color is android.graphics.ColorSpace.Model.RGB, the third component is "blue".

This method allows to use destructuring declarations when working with colors, for example:

val (red, green, blue, alpha) = myColorLong