Squares and circles (grid) (recursion vs. nested for-loops)

Hey thank you for the reply.
I did some researches and all of the results I found were in recursive function, it said it was easier and smaller code to do.

void setup() {
  size(384, 320);
  noStroke();
  noLoop();
}
void draw() {
  
  drawShape(0, 0, 64, 64, 6);
}


void drawShape(int x, int y, int sizex, int sizey, int level) {
  int iCircle=32;
  rectMode(RADIUS);
  rect(x, y, sizex, sizey);
  float tt = 126 * 6/4.0;
  fill(tt);
  if (level > 1) {
    level = level - 1;
    ellipse(x+iCircle, y+iCircle, sizex, sizey);
    iCircle+=32;
    drawShape(x+sizex, y, sizex, sizey, level);
    drawShape(x, y-sizey, sizex, sizey, level);
  }
}

I am trying to do it this way I didn’t finish yet but here is the code I have now