Open Derinzed opened 2 years ago
I was able to solve the issue by converting the level to a float in the scene update call like so:
canvas.scene.update({"darkness": parseFloat(level)}, {animateDarkness: true}).then(() => { interpolateSceneColor(color) });
and
canvas.scene.update({"darkness": parseFloat(level)}, {animateDarkness: false}).then(() => { SendColorChange(color); });
I don't know if this is the optimal solution, but it does work.
I was able to solve the issue by converting the level to a float in the scene update call like so:
and
I don't know if this is the optimal solution, but it does work.