Code

size(300,300);
background(0);
smooth();

for (int i = 0; i<300; i = i+2) {
  fill(0);
  stroke(255-i *10, 50*i);
  ellipse(280-i*5, 150, 100,100); 
}

0108 - For Loops VI: Line Series

Statement:Use a for structure which decrements its counting variable, to create a series of overlapping circles which are drawn from right to left. Your design will be correct if the leftmost circle was drawn last (on top). An example similar to this was given in class.

hide statement