Skip to content

Commit bceca55

Browse files
committed
Merge pull request phaserjs#2222 from FracturedShader/patch-2
Update BitmapData.shiftHSL, limitValue -> clamp
2 parents 5893224 + 4519584 commit bceca55

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gameobjects/BitmapData.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -877,12 +877,12 @@ Phaser.BitmapData.prototype = {
877877

878878
if (s)
879879
{
880-
pixel.s = this.game.math.limitValue(pixel.s + s, 0, 1);
880+
pixel.s = this.game.math.clamp(pixel.s + s, 0, 1);
881881
}
882882

883883
if (l)
884884
{
885-
pixel.l = this.game.math.limitValue(pixel.l + l, 0, 1);
885+
pixel.l = this.game.math.clamp(pixel.l + l, 0, 1);
886886
}
887887

888888
Phaser.Color.HSLtoRGB(pixel.h, pixel.s, pixel.l, pixel);

0 commit comments

Comments
 (0)