Prevent lerpColor from always rounding down

This is supposed to fix #2812.

I tested these changes and it works for me, but I'm not sure that the HSB part is totally correct.

This is my first Processing patch, please review ;-)