Changing gradient

Hi there!

I am experimenting with gradients. I have made this one, based on happy codding tutorial, but I would like to animate it. I want the orange part turns slowly into pink and the pink part turns slowly into orange, but I don’t know how to do that.

void setup() {
  size(1000, 1000);
  colorMode(RGB,1000,1000,1000);
  noSmooth();
}

void draw() {
  for(int y = 0; y < height; y++){
    for(int x = 0; x < 100; x++){
      stroke(800,500,y);
      point(x, y);
    }
  }
}

i have this other way to make a gradient and I like it because I would love to make a gradient with more than 2 colors, but I don’t know how to select them




void setup(){
  size(800,1000);
  colorMode(HSB, 1000,1000,1000);
}

void draw(){
  //strokeWeight(2);
  for (int i = 0; i<height; i++){
  stroke(i,1000,1000);
  line(0,i,100,i);
}
}

And finally this maybe the only way I know to change the color of the screen

float y = 0;
void setup(){
  size(800,1000);
  colorMode(HSB, 1000,1000,1000);
}

void draw(){
  background(random(0,1000),1000,1000);
}