perform_zoom_delta()

Scales the screen relative to the given point

Parameters:

  • point:{x: number, y:number}: the point to zoom into.
  • zoom: number the scaling factor to zoom by.

Description:

The function will scale the canvas by the given factor in the given point. Note that this function does not reset previous transforms so it's a cumulative function.