PCGamesF1Tech_processing/Metaballs/Blob.pde
class Blob {

  PVector pos;
  PVector vel;
  float r;

  Blob(float x, float y) {
    pos= new PVector(x, y);
    vel = PVector.random2D();
    vel.mult(random(4, -4));
    r =random(15,30);
  }

  void update() {
    pos.add(vel);

    if (pos.x > width || pos.x < 0) {
      vel.x *= -1;
    }
    if (pos.y > height || pos.y < 0) {
      vel.y *= -1;
    }
  }

  void show() {
    //noFill();
    stroke(0);
    strokeWeight(4);
    ellipse(pos.x, pos.y, r*2, r*2);
  }
}