mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +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)
|
dst = dst.darkened(-strength)
|
||||||
else:
|
else:
|
||||||
if lighten_or_darken == LightenDarken.LIGHTEN:
|
if lighten_or_darken == LightenDarken.LIGHTEN:
|
||||||
dst.h += (hue_amount / 359)
|
dst.h += (hue_amount / 359.0)
|
||||||
dst.s -= (sat_amount / 100)
|
dst.s -= (sat_amount / 100.0)
|
||||||
dst.v += (value_amount / 100)
|
dst.v += (value_amount / 100.0)
|
||||||
else:
|
else:
|
||||||
dst.h -= (hue_amount / 359)
|
dst.h -= (hue_amount / 359.0)
|
||||||
dst.s += (sat_amount / 100)
|
dst.s += (sat_amount / 100.0)
|
||||||
dst.v -= (value_amount / 100)
|
dst.v -= (value_amount / 100.0)
|
||||||
|
|
||||||
return dst
|
return dst
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue