/************************************* * Author: Jonathan Seguin * Problem Set: 1 * Question: 7 * Last Modified: February 10th, 2009 *************************************/ // Description: symmetry experiment with ellipse for patterns //------------------------------------------------------------- //**INPUT** size(400,400); background (0); smooth(); noFill(); strokeWeight(1); //**DECLARATION & INITIALIZATION** int spacer = width/50 + height/50; // modifier relative to canvas size //**OUTPUT** for (int b = 0; b < spacer*2 ; b++) { ellipseMode(CORNER); stroke (color(255,map(b,0,spacer*2-1,0,255),0)); ellipse (width/2-spacer, height/2+spacer, b*spacer, -b*spacer);//top right ellipse (width/2+spacer, height/2+spacer, -b*spacer, -b*spacer);//top left ellipse (width/2-spacer, height/2-spacer, b*spacer, b*spacer); //bottom right ellipse (width/2+spacer, height/2-spacer, -b*spacer, b*spacer);//bottom left }