xxxxxxxxxx
21
function setup() {
createCanvas(600, 600);
}
function draw() {
background(220);
translate(width/2, height/2)
beginShape()
noFill();
let c = 40;
for (let i = 0; i < 10; i++){
let vt = i /c *PI;
let x = cos(vt) * vt*c;
let y = sin(vt) * vt*c;
vertex(x,y);
}
endShape()
}