xxxxxxxxxx
19
function setup() {
createCanvas(windowWidth, windowHeight);
}
function draw() {
let from = color(0, 0, 0,100);
// let to = color(237,34,92,150);
let to = color(255,129,94,150);
for (let i = 0; i < height; i +=1) {
let inter = lerpColor(from, to, i/height);
stroke(inter);
line(0, i, width, i);
// push();
// translate(0, i);
// rotate(PI/4);
// line(-width, 0, width, 0);
// pop();
}
}