Fix dynamic hue not cycling through all the 360 hue values when drawing

the line due to the change in the max size of the line.
This commit is contained in:
Artur Gomes 2017-08-17 15:53:13 +01:00
parent 4f5bfcbc2b
commit 2835130515

View file

@ -123,7 +123,7 @@
var isAnyDynamicEffectEnabled = false;
if ("dynamicHue" in _dynamicEffects && _dynamicEffects.dynamicHue) {
isAnyDynamicEffectEnabled = true;
var hueIncrement = 359.0 / 70.0;
var hueIncrement = 359.0 / MAX_POINTS_PER_LINE;
_dynamicColor.hue = calculateValueInRange(_dynamicColor.hue, 0, 359, hueIncrement);
}