Merge pull request #4922 from samme/feature/emitter-setTint

Add ParticleEmitter#setTint()
This commit is contained in:
Richard Davey 2019-12-28 16:33:39 +00:00 committed by GitHub
commit 5adf6382ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1323,6 +1323,23 @@ var ParticleEmitter = new Class({
return this;
},
/**
* Sets the color tint of emitted particles.
*
* @method Phaser.GameObjects.Particles.ParticleEmitter#setTint
* @since 3.22.0
*
* @param {(Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType|Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType)} value - A value between 0 and 0xffffff.
*
* @return {Phaser.GameObjects.Particles.ParticleEmitter} This Particle Emitter.
*/
setTint: function (value)
{
this.tint.onChange(value);
return this;
},
/**
* Sets the angle of a {@link Phaser.GameObjects.Particles.ParticleEmitter#radial} particle stream.
*