//this code generates a cool looking circle-within-a-circle-within-a-circle type fractal //written in Processing 0135 Beta void setup() { size(300,200); noStroke(); smooth(); noLoop(); } void draw() { circle(4*width/10, height/2 ,width,8); } void circle(int x, int y, int rad, int level) { float colr=70*level/4; fill(colr); ellipse(x, y, rad*2, rad*2); if (level>1) { level-=1; circle(x-rad/2, y, rad/2, level); circle(x+rad/2, y, rad/2, level); circle(x, y-rad/2, rad/2, level); circle(x, y+rad/2, rad/2, level); } }