Phaser API Documentation

  Version: 
brightness([value], [multiply])

Description:

Changes the brightness of this ColorMatrix by the given amount.

Parameters:

name type arguments Default description
value number <optional> 0

The amount of brightness to apply to this ColorMatrix. Between 0 (black) and 1.

multiply boolean <optional> false

Multiply the resulting ColorMatrix (true), or set it (false) ?

Returns:
Description:

This ColorMatrix instance.

Since: 3.50.0