xxxxxxxxxx
20
function setup() {
createCanvas(400, 400);
background(50);
angleMode(DEGREES);
stroke('red');
strokeWeight(2);
translate(200,200);
beginShape();
for (let i = 0; i < 360; i+=45) {
let x = 100 * sin(i);
let y = 100 * cos(i);
vertex(x, y);
}
endShape(CLOSE);
}
function draw() {}