kvision / pl.treksoft.kvision.core / Color

Color

(js) class Color

Type-safe definition of CSS color.

Parameters

color - CSS color string

Constructors

(js)

<init>

Type-safe definition of CSS color.

Color(color: String? = null)

Properties

(js)

color

CSS color string

val color: String?

Functions

(js)

asString

fun asString(): String
(js)

toString

fun toString(): String

Companion Object Functions

(js)

hex

Creates CSS Color with color given in hex format.

fun hex(color: Int): Color
(js)

name

Creates CSS Color with color given with named constant.

fun name(color: Col): Color