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

component3

inline operator fun Int.component3(): Int

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

Color.green(myInt)

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

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