public void update(int fps,float angle){
  double speed=(SPEED / FPS) * Math.log(radius);
  y-=speed;
  x+=amp * Math.sin(freq * (step++ * speed)) + skew;
  if (radius < maxRadius) {
    radius+=maxRadius / (((float)fps / SPEED) * radius);
    if (radius > maxRadius)     radius=maxRadius;
  }
}

public void update ( int fps , float angle ) { double speed = ( SPEED / FPS ) * Math . log ( radius ) ; y -= speed ; x += amp * Math . sin ( freq * ( step ++ * speed ) ) + skew ; if ( radius < maxRadius ) { radius += maxRadius / ( ( ( float ) fps / SPEED ) * radius ) ; if ( radius > maxRadius ) radius = maxRadius ; } }
update the size and position of a bubble .
