SketchBook

function setup() {
createCanvas(windowWidth,
windowHeight);
background(1, 1, 1);
}

function draw() {
var from = color(100, 100, 300,800);
var to = color(500, 500, 500, 500);

fill(lerpColor(from, to, random(1.0)));
rect(random(width), random(height), 40,1000);
}