Phaser API Documentation

  Version: 
setColor(rgb)

Description:

Set the color of the light from a single integer RGB value.

Parameters:

name type description
rgb number

The integer RGB color of the light.

Returns:
Description:

This Light object.

Since: 3.0.0