set

open fun set(color: Color)

Set to the values of another color.


open fun set(r: Float, g: Float, b: Float)

Set to the RGB values passed in and an alpha of 1.


open fun set(r: Float, g: Float, b: Float, a: Float)

Set to the RGBA values passed in.


open fun set(@ColorInt argb: Int)

Set to RGBA values from an integer in the sRGB color space packed as an ARGB value. Used for setting from an Android ColorInt.