Skip to main content
Version: Phaser v4.0.0-rc.6

Types.Display

ColorObject

<static> ColorObject

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

<static> HSVColorObject

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

<static> InputColorObject

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