xxxxxxxxxx
20
function setup() {
createCanvas(400, 400);
angleMode(DEGREES);
frameRate(8);
}
function draw() {
background(220);
stroke(0);
noFill();
if (random() < 0.5) {
arc(0, 0, 400, 400, 0, 90);
arc(400, 400, 400, 400, 180, 270);
} else {
arc(400, 0, 400, 400, 90, 0);
arc(0, 400, 400, 400, 270, 360);
}
}