Color

constructor(hex: UInt, opacity: Float = 1.0f)

Creates a new Color using the hex representation.

val c = Color(0xff0000)

Parameters

hex

representation of the color

opacity

of the color


constructor(red: UByte, green: UByte, blue: UByte, opacity: Float = 1.0f)

creates a Color