xxxxxxxxxx
21
function setup() {
createCanvas(400, 400);
}
let angle = 0
let increment = 0.01
function draw() {
const r = 150
background(0);
translate(width / 2, height / 2)
// noLoop()
beginShape()
for(let i = 0; i < TWO_PI; i += increment) {
const x = cos(angle) * r
const y = sin(angle) * r
vertex(x, y)
angle += i
}
endShape()
}