Color

value class Color(val argb: Int)

A 32 bit sRGB format color value encoded in an Int. The component values are arranged in ARGB order.

Since

200.0.0

Constructors

Link copied to clipboard
constructor(argb: Int)

creates a color from a 32 bit Int sRGB color value.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val alpha: Int

The alpha value

Link copied to clipboard
val argb: Int

an Int color value in sRGB format.

Link copied to clipboard
val blue: Int

The blue value

Link copied to clipboard
val green: Int

The green value

Link copied to clipboard
val red: Int

The red value

Functions

Link copied to clipboard
operator fun component1(): Int

The alpha component

Link copied to clipboard
operator fun component2(): Int

The red component

Link copied to clipboard
operator fun component3(): Int

The green component

Link copied to clipboard
operator fun component4(): Int

The blue component