mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-05-06 21:24:48 -04:00
Fix Hue Shifting not working on exported builds
This commit is contained in:
parent
bd10680f63
commit
fad41bd27b
1 changed files with 6 additions and 6 deletions
|
@ -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…
Add table
Reference in a new issue