1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Fix Hue Shifting not working on exported builds

This commit is contained in:
Manolis Papadeas 2020-11-07 23:03:37 +02:00
parent bd10680f63
commit fad41bd27b

View file

@ -35,13 +35,13 @@ class LightenDarkenOp extends Drawer.ColorOp:
dst = dst.darkened(-strength)
else:
if lighten_or_darken == LightenDarken.LIGHTEN:
dst.h += (hue_amount / 359)
dst.s -= (sat_amount / 100)
dst.v += (value_amount / 100)
dst.h += (hue_amount / 359.0)
dst.s -= (sat_amount / 100.0)
dst.v += (value_amount / 100.0)
else:
dst.h -= (hue_amount / 359)
dst.s += (sat_amount / 100)
dst.v -= (value_amount / 100)
dst.h -= (hue_amount / 359.0)
dst.s += (sat_amount / 100.0)
dst.v -= (value_amount / 100.0)
return dst