core-ktx / androidx.graphics / kotlin.Int / component4

component4

inline operator fun Int.component4(): Int

Return the blue component of a color int. This is equivalent to calling:

Color.blue(myInt)

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

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