色タイル
function setup() {
createCanvas(windowWidth,
windowHeight);
background(254, 234, 0);
}
function draw() {
var from = color(185, 113, 98);
var to = color(93, 200, 195);
for (var i = 0.0; i < width; i = i + 30.0) {
for (var j = 0.0; j < height; j = j + 30.0) {
stroke(150
);
fill(lerpColor(from, to, (i + j) / (width + height)));
rect(i, j, 80, 40);
}
}
}