xxxxxxxxxx
30
function setup() {
createCanvas(500, 600);
noFill();
angleMode(DEGREES);
}
function draw() {
background(66);
translate(width/2,height/2);
let offset = 0;
beginShape();
for (let i = 0; i < 360; i += 1) {
// rotate(offset / 100);
stroke(
map(i, 0, 360, 0, 155),
map(i, 0, 360, 100, 255),
map(i, 0, 360, 190, 205),
50
);
strokeWeight(map(i, 0, 360, 0.1, 1.5));
let rad = map(noise(offset), 0, 1, -130, 50);
let x = cos(i) * rad;
let y = sin(i) * rad;
vertex(x, y);
offset += 0.05;
endShape(CLOSE);
}
}