You’re reading the docs for Phaser v3.88.2. The latest is Phaser v4.1.0.

Types.Display

Phaser.Types.Display

ColorObject

staticColorObject

nametypeoptionaldescription
rnumberNoThe red color value in the range 0 to 255.
gnumberNoThe green color value in the range 0 to 255.
bnumberNoThe blue color value in the range 0 to 255.
anumberNoThe alpha color value in the range 0 to 255.
colornumberNoThe combined color value.

Type: object

Member of: Phaser.Types.Display

Source: src/display/typedefs/ColorObject.js#L1
Since: 3.0.0


HSVColorObject

staticHSVColorObject

nametypeoptionaldescription
hnumberNoThe hue color value. A number between 0 and 1
snumberNoThe saturation color value. A number between 0 and 1
vnumberNoThe lightness color value. A number between 0 and 1

Type: object

Member of: Phaser.Types.Display

Source: src/display/typedefs/HSVColorObject.js#L1
Since: 3.0.0


InputColorObject

staticInputColorObject

nametypeoptionaldescription
rnumberYesThe red color value in the range 0 to 255.
gnumberYesThe green color value in the range 0 to 255.
bnumberYesThe blue color value in the range 0 to 255.
anumberYesThe alpha color value in the range 0 to 255.

Type: object

Member of: Phaser.Types.Display

Source: src/display/typedefs/InputColorObject.js#L1
Since: 3.0.0