Skip to content

Commit f79d10f

Browse files
author
Marchys
committed
Correct Documentation Emitter.js
setScale and setAlpha parameter are not numbers (now on dev branch sorry :( )
1 parent dc5d5c2 commit f79d10f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/particles/arcade/Emitter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ Phaser.Particles.Arcade.Emitter.prototype.setRotation = function (min, max) {
612612
* @param {number} [min=1] - The minimum value for this range.
613613
* @param {number} [max=1] - The maximum value for this range.
614614
* @param {number} [rate=0] - The rate (in ms) at which the particles will change in alpha from min to max, or set to zero to pick a random alpha between the two.
615-
* @param {number} [ease=Phaser.Easing.Linear.None] - If you've set a rate > 0 this is the easing formula applied between the min and max values.
615+
* @param {function} [ease=Phaser.Easing.Linear.None] - If you've set a rate > 0 this is the easing formula applied between the min and max values.
616616
* @param {boolean} [yoyo=false] - If you've set a rate > 0 you can set if the ease will yoyo or not (i.e. ease back to its original values)
617617
*/
618618
Phaser.Particles.Arcade.Emitter.prototype.setAlpha = function (min, max, rate, ease, yoyo) {
@@ -653,7 +653,7 @@ Phaser.Particles.Arcade.Emitter.prototype.setAlpha = function (min, max, rate, e
653653
* @param {number} [minY=1] - The minimum value of Particle.scale.y.
654654
* @param {number} [maxY=1] - The maximum value of Particle.scale.y.
655655
* @param {number} [rate=0] - The rate (in ms) at which the particles will change in scale from min to max, or set to zero to pick a random size between the two.
656-
* @param {number} [ease=Phaser.Easing.Linear.None] - If you've set a rate > 0 this is the easing formula applied between the min and max values.
656+
* @param {function} [ease=Phaser.Easing.Linear.None] - If you've set a rate > 0 this is the easing formula applied between the min and max values.
657657
* @param {boolean} [yoyo=false] - If you've set a rate > 0 you can set if the ease will yoyo or not (i.e. ease back to its original values)
658658
*/
659659
Phaser.Particles.Arcade.Emitter.prototype.setScale = function (minX, maxX, minY, maxY, rate, ease, yoyo) {

0 commit comments

Comments
 (0)