component4
Returns the fourth component of the color. For instance, when the color model of the color is android.graphics.ColorSpace.Model.RGB, the fourth component is "alpha".
This method allows to use destructuring declarations when working with colors, for example:
val (red, green, blue, alpha) = myColor
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
Returns the fourth component of the color. For instance, when the color model of the color is android.graphics.ColorSpace.Model.RGB, the fourth component is "alpha".
This method allows to use destructuring declarations when working with colors, for example:
val (red, green, blue, alpha) = myColorLong
Returns "bottom", the fourth component of the rectangle.
This method allows to use destructuring declarations when working with rectangles, for example:
val (left, top, right, bottom) = myRectangle