

class PranaCircle{

  Circle bgCircle;   // Background circle
  Circle fgCircle;   // Foreground circle
  float maxRadius;
  float minRadius;
  float radius;
  
  PranaCircle(float x, float y, float r){
    bgCircle = new Circle(x, y, r);
    fgCircle = new Circle(x, y, r);
    bgCircle.setFillColor(128, 52, 174);
    bgCircle.hasStroke = true;
    bgCircle.lWeight = 10;
    fgCircle.setFillColor(35, 27, 78);
    maxRadius = r;
    minRadius = 20;
    radius = minRadius;
    fgCircle.r = radius;
  }

  void draw(){
   bgCircle.draw();
   fill(255,150);
   ellipse(width/2, height/2,100,100);
   fgCircle.draw();
  }
  
  void expand(){
    println("Radius: " +radius);
    println("Max r: " + maxRadius);
    if(radius < maxRadius){
      radius++;
      fgCircle.r = radius;
    }
  }
  
  void contract(){
    if(radius > minRadius){
      radius--;
      fgCircle.r = radius;
    }
  }
}