getHexColor()
Create a Color from a hex color string.
The leading "#" is optional.
Parameters
Color.getHexColor() is a static utility. Call it on the Color class itself, for example:
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. |