xxxxxxxxxx
26
function setup() {
createCanvas(600, 600);
}
function draw() {
background(220);
noLoop();
var zoom = 90.0;
var spacing = 10;
for(var row = 0; row < height; row ++){
for(var col = 0; col<width; col ++){
var gray = 230*noise((millis()/10 + row)/zoom, col/zoom);
var c;
if(gray < 127){
gray = color(67, 191, 179);
}else{
gray = color(210, 242, 179);
}
set(row, col, gray);
}
}
updatePixels();
}