Phaser API Documentation

  Version: 
Filter
Namespace: Display
Phaser.Types.Display

Type Definitions

ColorObject
Focus
Focus
Properties:
name type description
r number

The red color value in the range 0 to 255.

g number

The green color value in the range 0 to 255.

b number

The blue color value in the range 0 to 255.

a number

The alpha color value in the range 0 to 255.

Type:
object
Since: 3.0.0
Focus
Focus
HSVColorObject
Focus
Focus
Properties:
name type description
h number

The hue color value. A number between 0 and 1

s number

The saturation color value. A number between 0 and 1

v number

The lightness color value. A number between 0 and 1

Type:
object
Since: 3.0.0
Focus
Focus
InputColorObject
Focus
Focus
Properties:
name type arguments description
r number <optional>

The red color value in the range 0 to 255.

g number <optional>

The green color value in the range 0 to 255.

b number <optional>

The blue color value in the range 0 to 255.

a number <optional>

The alpha color value in the range 0 to 255.

Type:
object
Since: 3.0.0
Focus
Focus