sketch = function (s) {
const tau = 2 * Math.PI;
const colour1 = "yellow";
const colour2 = "#6317c5";
s.setup = function () {
s.createCanvas(container.width, container.height);
s.background(colour1);
s.fill(colour1);
s.stroke(colour2);
s.strokeWeight(5);
for (let i = 0; i < 10; ++i) {
for (let j = 0; j < 10; ++j) {
if (Math.random() < 0.5) {
s.arc(i * 50, j * 50, 75, 75, 0, 0.25 * tau);
s.arc((i + 1) * 50, (j + 1) * 50, 75, 75, 0.5 * tau, 0.75 * tau);
s.arc(i * 50, j * 50, 50, 50, 0, 0.25 * tau);
s.arc((i + 1) * 50, (j + 1) * 50, 50, 50, 0.5 * tau, 0.75 * tau);
s.arc(i * 50, j * 50, 25, 25, 0, 0.25 * tau);
s.arc((i + 1) * 50, (j + 1) * 50, 25, 25, 0.5 * tau, 0.75 * tau);
} else {
s.arc((i + 1) * 50, j * 50, 75, 75, 0.25 * tau, 0.5 * tau);
s.arc(i * 50, (j + 1) * 50, 75, 75, 0.75 * tau, tau);
s.arc((i + 1) * 50, j * 50, 50, 50, 0.25 * tau, 0.5 * tau);
s.arc(i * 50, (j + 1) * 50, 50, 50, 0.75 * tau, tau);
s.arc((i + 1) * 50, j * 50, 25, 25, 0.25 * tau, 0.5 * tau);
s.arc(i * 50, (j + 1) * 50, 25, 25, 0.75 * tau, tau);
}
}
}
};
s.draw = function () {
};
}