Children’s mosaic

let y = 20;
let x = 20;

function setup() {
  createCanvas(600, 600);
  background(200);
}

function draw() {
  noStroke();
  fill(random(255), random(255), random(255), 60);

  if (y <= height - 20) {
    ellipse(300, y, 600, 40);
    y = y + 20;
  } else {
    ellipse(x, 300, 40, 600);
    x = x + 20;

    if (x > width - 20) {
      y=20;
      x=20
    }
  }
}
 function mousePressed() {saveCanvas('Bērnu_mozaīka', 'jpg');}