xxxxxxxxxx
18
function setup() {
createCanvas(windowWidth, windowHeight);
noiseDetail(random(1, 99));
noiseSeed(random(1, 99));
loadPixels();
for (let x = 0; x < width; x++) {
for (let y = 0; y < height; y++) {
let index = (x + y * width) * 4;
let c = noise(x * y * 0.002) * 255;
pixels[index] = c;
pixels[index + 1] = c;
pixels[index + 2] = c;
pixels[index + 3] = 255;
}
}
updatePixels();
}