xxxxxxxxxx
24
function setup() {
createCanvas(600, 600);
noLoop();
}
function draw() {
background(220);
let points = 500;
let radius = width/2;
let x = width/2;
let y = height/2;
beginShape();
for (i=0; i<TWO_PI; i+= TWO_PI/points) {
pointx = cos(i)+1;
pointy = sin(i) +1;
let newr = map(noise(pointx,pointy),0,1,radius-100,radius);
let cx = x + newr*cos(i);
let cy = y + newr*sin(i);
curveVertex(cx,cy);
}
endShape(CLOSE);
}