xxxxxxxxxx
36
const noiseScale = 0.005;
const maxRad = 150;
const minRad = 50;
function setup() {
createCanvas(400, 400);
stroke(0, 128, 255);
noFill();
}
function draw() {
background(0, 10);
const cx = width/2;
const cy = height/2;
let ang = 0;
beginShape();
while(ang < TAU) {
let x = cos(ang);
let y = sin(ang);
const n = noise(10 + x/2, 10 + y/2, frameCount * noiseScale);
const r = map(n, 0, 1, minRad, maxRad);
vertex(cx + x * r, cy + y * r);
ang += 0.01;
}
endShape(CLOSE);
}