getColor
private getColor(color: string | number | (string | number)[]) → {string | string[]}
Utility function to convert hexadecimal colors to strings, and simply return the color if it's a string. This version can also convert array of colors
Name | Type | Description |
---|---|---|
color | string | number | (string | number)[] |
Type | Description |
---|---|
string | string[] |
The color as a string. |