xxxxxxxxxx
let radi = 200;
let xoff = 0;
let yoff = 0;
let alfa = 0;
function setup() {
createCanvas(windowWidth, windowHeight);
background(255);
angleMode(DEGREES);
noFill();
frameRate(60);
}
function draw() {
background(255,5);
alfa = alfa+0.5;
translate(windowWidth/2, windowHeight/2);
beginShape();
for(let i = 0; i<360; i++){
xoff = map(cos(i+alfa),-1,1,0,6);
yoff = map(sin(i),-1,1,0,6);
let val = noise(xoff, yoff);
radi = map(val,0,1,200,400);
let x = radi*cos(i);
let y = radi*sin(i);
vertex(x,y);
}
endShape(CLOSE);
}