Code

size(500,500);
smooth();
noStroke();

  for (int y=50; y<=450; y=y+100){
    for (int x=50; x<=450; x=x+100){
      for (int i=90; i>=10; i=i-15){
        fill(255-(i*3), 255-(y*(.5)), 255-(x*(.5)));
        ellipse(x,y,i,i);
      }
    }
  }

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