xxxxxxxxxx
27
const circleProps = {
radius: 100,
steps: 100
}
function setup() {
createCanvas(w = 400, h = 400);
}
function draw() {
background("#E3E3DB");
let theta = 0
fill("#276968")
noStroke()
beginShape()
for (let i = 0; i < circleProps.steps; i++) {
let x = w / 2 - circleProps.radius * cos(theta)
let y = h / 2 - circleProps.radius * sin(theta)
vertex(x, y)
theta += TWO_PI / circleProps.steps
}
endShape(CLOSE)
}