SketchBook

Rain

function setup() {
createCanvas(windowWidth,
windowHeight);
 background(224, 222, 254);

noStroke();

fill(0, 200, 255);
rect(20, 20, 260, 260);

fill(40, 185, 235);
rect(40, 40, 220, 220);

fill(40, 185, 235);
rect(80, 80, 200, 200);
}

function draw() {
 var from = color(0, 20, 30, 140);
 var to = color(25, 85, 150, 40);

fill(lerpColor(from, to, random(0.4)));
 rect(random(width), random(height), 8, 250);
}