Companion

Functions

Link copied to clipboard
fun fromHex(hex: Int): ColorRGBa

Calculates a color from hexadecimal value. For values with transparency use the String variant of this function.

Calculates a color from hexadecimal notation, like in CSS.

Link copied to clipboard
fun fromVector(vector: Vector4, linearity: Linearity = Linearity.LINEAR): ColorRGBa

Create a ColorRGBa object from a Vector4

fun fromVector(vector: Vector3, alpha: Double = 1.0, linearity: Linearity = Linearity.LINEAR): ColorRGBa

Create a ColorRGBa object from a Vector3