Merge pull request #2222 from FracturedShader/patch-2

Update BitmapData.shiftHSL, limitValue -> clamp
This commit is contained in:
Richard Davey 2016-02-02 02:31:54 +02:00
commit bceca55c8f

View file

@ -877,12 +877,12 @@ Phaser.BitmapData.prototype = {
if (s) if (s)
{ {
pixel.s = this.game.math.limitValue(pixel.s + s, 0, 1); pixel.s = this.game.math.clamp(pixel.s + s, 0, 1);
} }
if (l) if (l)
{ {
pixel.l = this.game.math.limitValue(pixel.l + l, 0, 1); pixel.l = this.game.math.clamp(pixel.l + l, 0, 1);
} }
Phaser.Color.HSLtoRGB(pixel.h, pixel.s, pixel.l, pixel); Phaser.Color.HSLtoRGB(pixel.h, pixel.s, pixel.l, pixel);