/* circles_on_edge.pde Edited by Justin Hsia (orig. Susan Evans) Use loops to draw circles along the edge of the drawing canvas. */ size(720, 120); // canvas size background(255); // white background noStroke(); // no outline on circles fill(75, 47, 131); // UW purple int diam = 40; // loop for circles along the top edge for(int i = 0; i <= width; i = i+diam) { ellipse(i,0,diam,diam); } // loop for circles along the left edge for(int j = 0; j <= height; j = j+diam) { ellipse(0,j,diam,diam); }