getHexColor()
Create a Color from a hex color string.
Color.getHexColor(hex)
Color.getHexColor is a static utility. Call it on the class itself, for example Color.getHexColor(). The leading "#" is optional.
Parameters
Color.getHexColor(hex)
| Parameter | Type | Default | Description |
|---|---|---|---|
hex |
str |
required | A hex color string, for example "#ff8800". |
Returns
return hexColor
| Value | Type | Description |
|---|---|---|
| hexColor | Color |
The matching color. |