kvision / pl.treksoft.kvision.core / Color

Color

class Color

Type-safe definition of CSS color.

Constructors

<init>

Color(color: Int)

Creates CSS Color with color given in hex format.

Color(color: Col)

Creates CSS Color with color given with named constant.

Functions

asString

fun asString(): String

toString

fun toString(): String

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.