While working on my project I learned how to use a lerp color function and I find it pretty cool and useful, so I just wanted to have a piece of coding for this so I could always look at my blog and refresh in mind how it works.

color from = color(77, 21, 12);
color to = color(170, 135, 77);
color interA = lerpColor(from, to, random(0.0, 1.0));
fill(interA);
color to = color(170, 135, 77);
color interA = lerpColor(from, to, random(0.0, 1.0));
fill(interA);
No comments:
Post a Comment