Companion

object Companion

Properties

Link copied to clipboard

Matches android.graphics.Color.BLACK

Link copied to clipboard
val cyan: Color

Matches android.graphics.Color.CYAN

Link copied to clipboard

Matches android.graphics.Color.GREEN

Link copied to clipboard
val red: Color

Matches android.graphics.Color.RED

Link copied to clipboard

Matches android.graphics.Color.TRANSPARENT

Link copied to clipboard

Matches android.graphics.Color.WHITE

Functions

Link copied to clipboard
fun fromRgba(r: Int, g: Int, b: Int, a: Int = 255): Color

Constructs a Color from component red, green, blue, and alpha values. The constructed color will be in sRGB format in ARGB order.