On https://docs.phaser.io/phaser/concepts/fx, it says that I can ‘convert this ColorMatrix to have negative values’. However, using the exact same syntax that it describes, I cannot create the inversion effect I’m hoping to get.
This is the doc’s description.
effect.negative(multiply);
multiply
: Multiply the resulting ColorMatrix (true
), or set it (false
) ?true
: Multiply the resulting.false
: Set the resulting. Default behavior.
my code:
let effect = this.cameras.main.postFX.addColorMatrix()
effect.negative(false)
What am I doing incorrectly?