xxxxxxxxxx
28
var inc = 0.008;
function setup() {
createCanvas(windowWidth, windowHeight);
pixelDensity(1);
}
function draw() {
let yoff = 0.05;
loadPixels();
for (let y = 0; y < height; y++) {
let xoff = 3;
for (let x = 0; x < width; x++) {
let index = (x + y * width) * 4;
let r = noise(xoff, yoff, frameCount/200) * 255; //20
pixels[index + 0] = 87;
pixels[index + 1] = 160
pixels[index + 2] = 211;
pixels[index + 3] = r;
xoff += inc;
}
yoff += inc;
}
updatePixels();
}