Per-Vertex Tint

Demonstrates how to apply individual tint colors to each of the four corners of an image to create unique gradient effects.

Per-Vertex Tint, running
800 × 600
GitHub
class Example extends Phaser.Scene
{
    constructor ()
    {
        super();
    }

    preload ()
    {
        this.load.setBaseURL('https://cdn.phaserfiles.com/v410');
        this.load.image('face', 'assets/pics/bw-face.png');
    }

    create ()
    {
        const hsv = Phaser.Display.Color.HSVColorWheel();
        const image = this.add.image(400, 300, 'face');

        image.setTint(0xff00ff, 0xffff00, 0x0000ff, 0xff0000);

        this.input.on('pointerdown', function (pointer) {

            const a = Phaser.Math.Between(0, 359);
            const b = Phaser.Math.Between(0, 359);
            const c = Phaser.Math.Between(0, 359);
            const d = Phaser.Math.Between(0, 359);

            image.setTint(hsv[a].color, hsv[b].color, hsv[c].color, hsv[d].color);

        });
    }
}

const config = {
    scale: { mode: Phaser.Scale.FIT },
    type: Phaser.WEBGL,
    parent: 'game-container',
    width: 800,
    height: 600,
    scene: Example
};

const game = new Phaser.Game(config);

More in Tint15 examples