Converts the given source color value into an instance of a Color class.
The value can be either a string, prefixed with rgb
or a hex string, a number or an Object.
name | type | description |
---|---|---|
input | string | number | Phaser.Types.Display.InputColorObject |
The source color value to convert. |
A Color object.