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:
parent
bd10680f63
commit
fad41bd27b
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue