mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 23:24:41 +00:00
Merge pull request #4922 from samme/feature/emitter-setTint
Add ParticleEmitter#setTint()
This commit is contained in:
commit
5adf6382ff
1 changed files with 17 additions and 0 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue