xxxxxxxxxx
let nx, ny, nz;
let h;
let ox, oy;
function setup() {
createCanvas(windowWidth, windowHeight);
colorMode(HSB, 360, 100, 100, 100);
nx = random(100);
ny = random(100);
nz = 0;
h = random(360);
ox = random(width);
oy = random(height);
background(0);
noFill();
}
function draw() {
blendMode(SCREEN);
stroke(h % 360, 100, 100, 50);
beginShape();
for (let i = 0; i < 500; i++) {
let x = map(noise(i * 0.01, nx, nz), 0, 1, ox - 500, ox + 500);
let y = map(noise(i * 0.01, ny, nz), 0, 1, oy - 500, oy + 500);
curveVertex(x, y);
}
endShape();
nz += 0.005;
if (nz > 0.5) {
nz = 0;
nx = random(100);
ny = random(100);
ox = random(width);
oy = random(height);
h = random(360);
}
h++;
}