component1

inline operator fun Color.component1(): Float

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

val (red, green, blue) = myColor

Return

Color.r