xxxxxxxxxx
26
let unitCircle;
let stats = false;
function setup() {
createCanvas(400, 400);
unitCircle = new UnitCircle(width / 2, height / 2, 100);
}
function draw() {
background(100);
unitCircle.update();
unitCircle.show();
if (stats) {
unitCircle.stats();
}
}
function setLineDash(list) {
drawingContext.setLineDash(list);
}
function mousePressed() {
stats = !stats;
}