Color

external class Color : JsAny

Integer based Color class with utility functions

Constructors

Link copied to clipboard
constructor()
constructor(color: Color)
constructor(color: Double)
constructor(R: Double, G: Double, B: Double)
constructor(R: Double, G: Double, B: Double, A: Double)
constructor(hexString: String)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getRed(): Double
Link copied to clipboard
fun setAlpha(alpha: Double)
Link copied to clipboard
fun toARGB(): Double
Link copied to clipboard
fun toHexString(withAlpha: Boolean = definedExternally): String

A hex string in the format of AARRGGBB

Link copied to clipboard
fun toInt(): Double
Link copied to clipboard
fun toRGB(): Double