xxxxxxxxxx
68
function setup() {
createCanvas(900, 900);
cols = ["#001219","#005f73","#0a9396","#94d2bd","#e9d8a6","#ee9b00","#ca6702","#bb3e03","#ae2012","#9b2226"];
zmax = 100;
zmin = 20;
nf1z1 = random(zmax) + zmin;
nf1z2 = random(zmax) + zmin;
nf2z1 = random(zmax) + zmin;
nf2z2 = random(zmax) + zmin;
nf3z1 = random(zmax) + zmin;
nf3z2 = random(zmax) + zmin;
nf4z1 = random(zmax) + zmin;
nf4z2 = random(zmax) + zmin;
nf5z1 = random(zmax) + zmin;
nf5z2 = random(zmax) + zmin;
nf6z1 = random(zmax) + zmin;
nf6z2 = random(zmax) + zmin;
nf7z1 = random(zmax) + zmin;
nf7z2 = random(zmax) + zmin;
nf8z1 = random(zmax) + zmin;
nf8z2 = random(zmax) + zmin;
nf9z1 = random(zmax) + zmin;
nf9z2 = random(zmax) + zmin;
nf10z1 = random(zmax) + zmin;
nf10z2 = random(zmax) + zmin;
//noprotect;
for(i = 0; i < width; i++){
for(j = 0; j < height; j++){
// nf1 = noise((i + width / 2) / random(1000), (j + height / 2) / random(1000)) + sin(i / random(50) + j / random(50));
// nf2 = noise((i + width / 2) / random(1000), (j + height / 2) / random(1000)) + sin(i / random(50) + j / random(50));
// nf3 = noise((i + width / 2) / random(1000), (j + height / 2) / random(1000)) + sin(i / random(50) + j / random(50));
// nf4 = noise((i + width / 2) / random(1000), (j + height / 2) / random(1000)) + sin(i / random(50) + j / random(50));
// nf5 = noise((i + width / 2) / random(1000), (j + height / 2) / random(1000)) + sin(i / random(50) + j / random(50));
// nf6 = noise((i + width / 2) / random(1000), (j + height / 2) / random(1000)) + sin(i / random(50) + j / random(50));
// nf7 = noise((i + width / 2) / random(1000), (j + height / 2) / random(1000)) + sin(i / random(50) + j / random(50));
// nf8 = noise((i + width / 2) / random(1000), (j + height / 2) / random(1000)) + sin(i / random(50) + j / random(50));
// nf9 = noise((i + width / 2) / random(1000), (j + height / 2) / random(1000)) + sin(i / random(50) + j / random(50));
// nf10 = noise((i + width / 2) / random(1000), (j + height / 2) / random(1000)) + sin(i / random(50) + j / random(50));
nf1 = noise(i / (nf1z1), j / (nf1z2));
nf2 = noise(i / (nf2z1 * 2), j / (nf2z2 * 2));
nf3 = noise(i / (nf3z1 * 3), j / (nf3z2 * 3));
nf4 = noise(i / (nf4z1 * 4), j / (nf4z2 * 4));
nf5 = noise(i / (nf5z1 * 5), j / (nf5z2 * 5));
nf6 = noise(i / (nf6z1 * 6), j / (nf6z2 * 6));
nf7 = noise(i / (nf7z1 * 7), j / (nf7z2 * 7));
nf8 = noise(i / (nf8z1 * 8), j / (nf8z2 * 8));
nf9 = noise(i / (nf9z1 * 9), j / (nf9z2 * 9));
nf10 = noise(i / (nf10z1 * 10), j / (nf10z2 * 10));
total = nf1 + nf2 + nf3 + nf4 + nf5 + nf6 + nf7 + nf8 + nf9 + nf10
c = map(total, 0, 10, 0, 100);
c1 = floor(c / 10);
c2 = c % cols.length / 10;
col1 = color(cols[c1]);
if(c1 <= cols.length - 1){
col2 = color(cols[c1 + 1]);
} else {
col2 = color(cols[0]);
}
col = lerpColor(col1, col2, c2);
stroke(col);
point(i, j);
}
}
}
function draw() {
// background(220);
}