Hi I can understand how to fade from one color (and back again) using code such as the one bellow.
But what if I want to move through a series of 3 or more color’s? Have you managed it??
;
limit = 0.5; // or somwhere between 0.0 and 1.0.
fade = some value between 0.0 to 1.0
if (fade < limit) color = lerpColor(color1, color2, fade/limit);
else color = lerpColor(color2, color3, (fade-limit)/(1-limit));
fill (color);
etc..
So just use more lerpColor statements.
For more colors you can expand on several if-else if (or just if) sections.
Or something like that.
Nice millis trick btw.