Scales the screen relative to the given point


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


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.

Did this page help you?