// See http://ejohn.org/blog/processingjs/ // Code here is re-executed every two seconds. size(300, 300); noLoop(); colorMode(HSB, 100, 100, 100); noStroke(); smooth(); void drawCircle(int x, int radius, int level) { float tt = 55 * level/4.0; fill(100 - tt, tt, tt); ellipse(x, 100, radius*2, radius*2); if (level > 1) { level = level - 1; drawCircle(x - radius/2, radius/2, level); drawCircle(x + radius/2, radius/2, level); } } drawCircle(190, 300, 6);