Phaser API Documentation

  Version: 

Member of: Phaser.Display.RGB

set([red], [green], [blue])

Description:

Sets the red, green and blue values of this RGB object, flags it as being dirty and then invokes the onChangeCallback, if set.

Parameters:

name type arguments description
red number <optional>

The red color value. A number between 0 and 1.

green number <optional>

The green color value. A number between 0 and 1.

blue number <optional>

The blue color value. A number between 0 and 1.

Returns:
Description:

This RGB instance.

Since: 3.50.0
Source: src/display/RGB.js (Line 63)