class Fireflies {

  PVector position = new PVector();
  PVector velocity = new PVector();


  Fireflies() {
    initial();
  }
  //end of Fireflies() routine

  void initial() {
    //INITIAL FIREFLY VALUES
    position.x = random(0, 800);
    position.y = random(0, 600);
    velocity.x = random(-3, -1);
    velocity.y = random (-3, -1);
  }
  //end of initial() routine

  void display() {

    //WINGS
    noStroke();
    fill(196, 70);
    ellipse(position.x+10+random(2, 5), position.y, 20, 10);
    ellipse(position.x-14+random(2, 5), position.y, 20, 10);

    //BODY
    fill(0);
    ellipse(position.x, position.y, 10, 10);

    //GLOW
    fill(255, 250, 103, 80);
    ellipse(position.x, position.y, 30, 30);
  }
  //end of display() routine

  void update() {
    //move fireflies randomly
    position.add(velocity);    

    if (position.x < -100 || position.y < -100) {
      initial();
    }
    //end of initializing if statement
  }
  //end of update() routine
}
//end of Fireflies class