xxxxxxxxxx
29
function setup() {
createCanvas(400, 400);
for(let i=0; i<width;i++){
for(let j=0; j<height;j++){
let val = noise(i/60,j/60);
val=map(val,0,1,0,6);
if(val >5){
stroke("#D582E4")
}else if(val>4){
stroke("#CDDC39")
}
else if(val>3){
stroke("#6E4E74")
}
else if(val>2){
stroke("#DA798D")
}
else if(val>1){
stroke("#E29EB5")
}
else if(val>0){
stroke("#E9C3BB")
}
colorMode(HSB,255)
point(i,j);
}
}
}