I have came to realize that when in colorMode(HSB), colorLerp doesnt work well with color objects that have 0 as an argument.
stroke(255);
// where color doesnt have a zero
var from = color(200, 255, 1);
var to = color(200, 255, 255);
var interA = lerpColor(from, to, .33);
var interB = lerpColor(from, to, .66);
fill(from);
rect(10, 20, 20, 60);
fill(interA);
rect(30, 20, 20, 60);
fill(interB);
rect(50, 20, 20, 60);
fill(to);
rect(70, 20, 20, 60);
//where color has a zerop
var from = color(200, 255, 0);
var to = color(200, 255, 255);
var interA = lerpColor(from, to, .33);
var interB = lerpColor(from, to, .66);
fill(from);
rect(10, 20+90, 20, 60);
fill(interA);
rect(30, 20+90, 20, 60);
fill(interB);
rect(50, 20+90, 20, 60);
fill(to);
rect(70, 20+90, 20, 60);
I have came to realize that when in colorMode(HSB), colorLerp doesnt work well with color objects that have 0 as an argument.