xxxxxxxxxx
31
function setup() {
createCanvas(400, 400);
colorMode(RGB, 1);
noice();
}
function noice() {
// noiseSeed(random(1000));
for (let x=0; x<width; x++) {
for (let y=0; y<width; y++) {
const zoom = 1 / width;
const offset_x = 0;
const offset_y = 0;
const val = noise(
offset_x + x * zoom,
offset_y + y * zoom
);
const clr = color(val, val, val);
set(x, y, clr);
}
}
updatePixels();
}
function draw() {
// background(220);
}