class ssrec { color tt; ssrec(color lc) { tt = lc; } void display() { drawCircle1(width/2, 280, 6); drawCircle2(width/4, 280, 6); drawCircle3(width/2 +500, 280, 6); } void drawCircle1(int x, int radius, int level) { float tt = color(255,0,0) * level/4.0 ; fill(tt); //translate(width/12,height/2); scale(1); strokeWeight(7); stroke(78, 12, 105); ellipse(x, height/2, radius*2+frameCount, radius*2); if(level > 1) { level = level - 1; drawCircle1(x - radius/2, radius/2, level); drawCircle1(x + radius/2, radius/2, level); } } void drawCircle2(int x, int radius, int level) { float tt = color(0,255,0) * level/4.0 ; fill(tt); //translate(width/12,height/2); scale(1); strokeWeight(4); stroke(193, 77, 240); ellipse(x, height/2, radius*2+frameCount, radius*2); if(level > 1) { level = level - 1; drawCircle2(x - radius/2, radius/2, level); drawCircle2(x + radius/2, radius/2, level); } } void drawCircle3(int x, int radius, int level) { float tt = color(0,0,255) * level/4.0 ; fill(tt); //translate(width/12,height/2); scale(1); strokeWeight(4); stroke(193, 77, 240); ellipse(x, height/2, radius*2+frameCount, radius*2); if(level > 1) { level = level - 1; drawCircle3(x - radius/2, radius/2, level); drawCircle3(x + radius/2, radius/2, level); } } } //void changeColor (color HSB) { // }