Hi There,
I want to make a gradient in processing with a for loop.
I can not figure out how i can solve this.
void setup() {
color from = color(255, 165, 32);
color to = color(72, 61, 139);
int steps = 100;
int w = 300 / steps;
size(300, 300);
background(51);
noStroke();
for (int i = 0; i < steps; i++) {
fill(lerpColor(from, to, ..?... ));
rect(i * w, 0, w, height);
}
}