Color

constructor()

Construct a Color and default it to white (1, 1, 1, 1).


constructor(color: Color)

Construct a Color with the values of another color.


constructor(r: Float, g: Float, b: Float)

Construct a color with the RGB values passed in and an alpha of 1.


constructor(r: Float, g: Float, b: Float, a: Float)

Construct a color with the RGBA values passed in.


constructor(@ColorInt argb: Int)

Construct a color with an integer in the sRGB color space packed as an ARGB value. Used for constructing from an Android ColorInt.