$k. Color

new Color(hexString)

Constructs a color that represents the specified hex string

Parameters:
NameTypeDescription
hexStringstring

hex string

Throws:

If the parameter is not an valid hex string

The value of a color attribute.

Type
$k.exception.InvalidValue

Methods

equals(value) → {boolean}

Returns true if the values are equal

Parameters:
NameTypeDescription
value

Another attribute value

Returns:
Type: 
boolean

toHexString() → {string}

Returns the hex string representation

Returns:
Type: 
string

toString() → {string}

Returns the string representation

Returns:
Type: 
string