kopia lustrzana https://github.com/backface/turtlestitch
Merge pull request #2824 from jmoenig/color-effect
fix negative color effect in objects.jspull/95/head
commit
a03b1b9d86
|
@ -5113,7 +5113,7 @@ SpriteMorph.prototype.applyGraphicsEffects = function (canvas) {
|
|||
}
|
||||
v = max / 255;
|
||||
|
||||
h = (h + hueShift * 360 / 200) % 360;
|
||||
h = (((h + hueShift * 360 / 200) % 360)+360)%360;
|
||||
s = Math.max(0, Math.min(s + saturationShift / 100, 1));
|
||||
v = Math.max(0, Math.min(v + brightnessShift / 100, 1));
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue