html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: #292a33;
  overflow: hidden;
}
function setup() {
  createCanvas(windowWidth, windowHeight);

  drawCircle(10, 0, 0);
}

function drawCircle(n, x, y) {
  if (n === 0) {
    return;
  }

  circle(x, y, 40);
  drawCircle(n - 1, x + 100, y);
  drawCircle(n - 1, x, y + 100);
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.min.js