SketchBook

art number 1

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

function draw() {
var from = color(159, 226, 191);
var to = color(223, 255, 0);

for (var i = 10.10; i < width; i = i + 50.0) {
for (var j = 10.10
; j < height; j = j + 50.0) {
stroke(5);
fill(lerpColor(from, to, (i + j) / (width + height)));
rect(i, j, 50, 50);
}

}
}