Converts a hex string into a Phaser Color object.
The hex string can supplied as '#0033ff'
or the short-hand format of '#03f'
; it can begin with an optional "#" or "0x", or be unprefixed.
An alpha channel is not supported.
name | type | description |
---|---|---|
hex | string |
The hex color value to convert, such as |
A Color object populated by the values of the given string.