xxxxxxxxxx
let x;
let y;
let count = 0;
let rate = 60;
function setup() {
createCanvas(600, 600);
x = width/2;
y = height/2;
background(0);
strokeWeight(0.1);
blendMode(ADD);
}
function draw() {
background(0, 1);
if (count > 120) {
rate -= 2;
frameRate(rate);
if (rate <= 6) {noLoop();}
}
count += 1;
for (let i = 0; i < TWO_PI; i+=0.0003) {
let px = x;
let py = y;
x = map(noise(i+frameCount/200+i), 0, 1, 0, width);
y = map(noise(i+frameCount/150+i+100), 0, 1, 0, height);
stroke(map(y, 0, width, 0, 225),255, map(x, 0, width, 0, 255), 110);
if (i != 0) {line(px, py, x, y);}
}
}