component2

inline operator fun Color.component2(): Float

Returns the green component of the color. Allows using destructuring declarations when working with libGDX Color class, for example:

val (red, green, blue) = myColor

Return

Color.g