new Color(hexString)
Constructs a color that represents the specified hex string
Parameters:
Name | Type | Description |
---|---|---|
hexString | string | hex string |
Throws:
If the parameter is not an valid hex string
The value of a color attribute.
Methods
equals(value) → {boolean}
Returns true if the values are equal
Parameters:
Name | Type | Description |
---|---|---|
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