zoom method

num zoom(
  1. double scale
)

Scale to Zoom function.

Implementation

num zoom(double scale) {
  return math.log(scale / 256) / math.ln2;
}