Phaser API Documentation

  Version: 

Description:

A color tint value that is applied to the texture of the emitted particle. The value should be given in hex format, i.e. 0xff0000 for a red tint, and should not include the alpha channel.

Tints are additive, meaning a tint value of white (0xffffff) will effectively reset the tint to nothing.

Modify the ParticleEmitter.tintFill property to change between an additive and replacement tint mode.

When you define the color via the Emitter config you should give it as an array of color values. The Particle will then interpolate through these colors over the course of its lifespan. Setting this will override any tint value that may also be given.

This is a WebGL only feature.

Accessing this property should typically return a number. However, it can be set to any valid EmitterOp onEmit type.

Since: 3.60.0