zoom method

double zoom(
  1. double view
)

Implementation

double zoom(double view){
  _zoom = 1.0-(size.width-view)/size.width;
  return _zoom;
}