Phaser API Documentation

  Version: 
addLight([x], [y], [radius], [rgb], [intensity])

Description:

Add a Light.

Parameters:

name type arguments Default description
x number <optional> 0

The horizontal position of the Light.

y number <optional> 0

The vertical position of the Light.

radius number <optional> 128

The radius of the Light.

rgb number <optional> 0xffffff

The integer RGB color of the light.

intensity number <optional> 1

The intensity of the Light.

Returns:
Description:

The Light that was added.

Since: 3.0.0