Phaser API Documentation

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

Description:

Change the contrast of this ColorMatrix by the amount given.

Parameters:

name type arguments Default description
value number <optional> 0

The amount of contrast to apply to this ColorMatrix.

multiply boolean <optional> false

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

Returns:
Description:

This ColorMatrix instance.

Since: 3.50.0