Phaser home
Phaser AE
Open source
Phaser 4
Download
Learn
Editor
Tools
Docs
Examples
News
Log in
Examples
/
Filters
/
Gradient Map
Phaser 4.1.0
Phaser 4 examples
Gradient Map
2
examples
Examples
2
Gradient Map Filter
Apply a multi-stop color gradient map to an image and dynamically control its intensity using the filter's alpha property.
Palette Swap With Gradient Map
Demonstrates how to use a Gradient Map filter to dynamically swap colors on a sprite by mapping image values to a new color ramp.