Phaser API Documentation

  Version: 
darken(amount)

Description:

Decrease the lightness of this Color by the percentage amount given.

Parameters:

name type description
amount number

The percentage amount to change this color by. A value between 0 and 100.

Returns:
Description:

This Color object.

Since: 3.13.0