Merge pull request #2824 from jmoenig/color-effect

fix negative color effect in objects.js
pull/95/head
Jens Mönig 2021-04-23 17:06:26 +02:00 zatwierdzone przez GitHub
commit a03b1b9d86
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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));