xxxxxxxxxx
31
//let xoff1 = 0;
//let xoff2 = 10000;
let inc = 0.005;
let start = 0;
function setup() {
createCanvas(400, 400);
}
function draw() {
let yoff = 0;
noiseDetail(120, 0.0001);
loadPixels();
for (let x = 0; x < width; x++) {
let xoff = 0;
for (let y = 0; y < height; y++) {
let index = (x + y * width) * 4;
let r = noise(xoff, yoff) * 255;
pixels[index + 0] = r;
pixels[index + 1] = r;
pixels[index + 2] = r;
pixels[index + 3] = 255;
xoff += inc;
}
yoff += inc;
}
updatePixels();
noLoop();
}