Code

size (500, 500);
noStroke();
smooth();
for (int k = 1; k <=5; k++){
  for (int j = 1; j <=5; j++){
    for (int i = 0; i < 6; i++){
      fill (i*40);
      ellipse (100*j-50, 100*k-50, 90-i*15, 90-i*15);
    }
  }
}

0205 - Gradual buildup of a complex design: Another for{} loop

Statement:Add yet another repetition structure around the previous assignment, in order to create the design shown here:



If you've done this correctly, step back and take a look at that - you've made a triple for{} loop!

hide statement