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, 255-k*50, 255-j*50 );
      ellipse (100*j-50, 100*k-50, 90-i*15, 90-i*15);
    }
  }
}

0206 - Gradual buildup of a complex design: Addition of color

Statement:OK, this is the last exercise in this series. Connect the row-counter and column-counter of your external for-loops to the green and blue channels of the fill() command, so as to reproduce the figure here: (http://www.golancourses.net/blog/wp-content/uploads/2008/09/0206.png).

Note the inverse relationships -- the color channels progress from light to dark as we travel from left to right and top to bottom! Step back and look at your results, and imagine if I had asked you to make this design, without the intermediate steps....

hide statement