mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
Merge pull request #2222 from FracturedShader/patch-2
Update BitmapData.shiftHSL, limitValue -> clamp
This commit is contained in:
commit
bceca55c8f
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue