Namespace: Display

Phaser.Types. Display

Type Definitions


ColorObject

Type:
  • object
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.

Since: 3.0.0
Source: src/display/typedefs/ColorObject.js (Line 1)

HSVColorObject

Type:
  • object
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

Since: 3.0.0
Source: src/display/typedefs/HSVColorObject.js (Line 1)

InputColorObject

Type:
  • object
Properties:
Name Type Argument 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.

Since: 3.0.0
Source: src/display/typedefs/InputColorObject.js (Line 1)