GrowingCircle oneGrowingCircle;
GrowingCircle oneGrowingCircle2;
GrowingCircle oneGrowingCircle3;
BounceCircle oneBounceCircle;
BounceCircle oneBounceCircle2;
BounceCircle oneBounceCircle3;
oneGrowingCircle= new GrowingCircle ( 0, 100,0);
oneGrowingCircle2= new GrowingCircle ( 0, 100,0);
oneBounceCircle = new BounceCircle (0,400,1);
oneBounceCircle2 = new BounceCircle (0,400,1);
oneBounceCircle3 = new BounceCircle (0,400,1);
oneGrowingCircle3= new GrowingCircle ( 0, 100,0);
c=oneBounceCircle.circleX;
r=oneGrowingCircle2.circleX;
b=oneGrowingCircle.circleX;
oneGrowingCircle.display();
oneBounceCircle.display();
println(oneGrowingCircle.circleX);
if (oneGrowingCircle.circleX >200)
oneGrowingCircle2.display();
oneBounceCircle2.display();
if (oneGrowingCircle.circleX <=200 & i==1)
oneGrowingCircle2.display();
oneBounceCircle2.display();
if (oneGrowingCircle2.circleX >200)
oneGrowingCircle3.display();
oneBounceCircle3.display();
if (oneGrowingCircle2.circleX <=200 & j==1)
oneGrowingCircle3.display();
oneBounceCircle3.display();
BounceCircle (int tempcircleX, int tempcircleY, float tempcircleSize) {
circleSize=tempcircleSize;
circleSize=circleSize+.25;}
ellipse(circleX, circleY, circleSize, circleSize);
ellipse(circleX, circleY, circleSize*.75, circleSize*.75);
ellipse(circleX, circleY, circleSize/2, circleSize/2);
ellipse(circleX, circleY, circleSize/4, circleSize/4);
ellipse(circleX, circleY, circleSize/8, circleSize/8);
if (i==1){circleX=circleX-5;
if (circleX==width-40&i==0&b==0)
if (circleX==400 & i==1){
{circleX=0; circleSize=0; i=0;b=0;}
GrowingCircle (int tempcircleX, int tempcircleY, float tempcircleSize) {
circleSize=tempcircleSize;
ellipse(circleX, circleY, circleSize, circleSize);
ellipse(circleX, circleY, circleSize*.75, circleSize*.75);
ellipse(circleX, circleY, circleSize/2, circleSize/2);
ellipse(circleX, circleY, circleSize/4, circleSize/4);
ellipse(circleX, circleY, circleSize/8, circleSize/8);
circleSize=circleSize+.25;