xxxxxxxxxx
26
function setup() {
createCanvas(600, 600);
}
function draw() {
background(220);
noStroke();
for (var x = 0; x < width; x += 10) {
for (var y = 0; y < height; y += 10) {
noiseDetail(3, 0.55);
var G = 255 * noise(x/100,y/100);
//land
if (G > 128) {
G = color(218, 168, 120);
//water
} else {
G = color(89, 153, 177);
}
fill(G);
rect(x, y, 10, 10);
}
}
}