Phaser API Documentation

  Version: 
<static> ValueToColor(input)

Description:

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.

Parameters:

name type description
input string | number | Phaser.Types.Display.InputColorObject

The source color value to convert.

Returns:
Description:

A Color object.

Since: 3.0.0