-
How do I make the color change smooth.
I put in this expression to a audio spectrum to constantly change the color of the bars, but the problem is that the color change is spontaneous, it doesn’t transition into the next color. Is there a way I can add a transition to this color change.
hues = [0,30,60,120,180,240,300];
freq = .5;
idx = Math.floor(time*freq)%hues.length;
hslToRgb([hues[idx]/360,.85,.4,1])