Phaser API Documentation

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

Description:

Changes the saturation of this ColorMatrix by the given amount.

Parameters:

name type arguments Default description
value number <optional> 0

The amount of saturation 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