Shape Blend Modes

Demonstrates how to apply blend modes to Shape Game Objects to create color mixing effects between overlapping circles.

Shape Blend Modes, running
800 × 600
GitHub
class Example extends Phaser.Scene
{
    create ()
    {
        this.add.circle(300, 250, 128, 0xff00ff).setBlendMode(Phaser.BlendModes.MULTIPLY);
        this.add.circle(500, 250, 128, 0x00ffff).setBlendMode(Phaser.BlendModes.MULTIPLY);
        this.add.circle(400, 400, 128, 0xffff00).setBlendMode(Phaser.BlendModes.MULTIPLY);
    }
}

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

const game = new Phaser.Game(config);

More in Shapes24 examples