javascript - How can I add pan and zoom controls to a Processing.js canvas? -


I can attract figures on a canvas. Now I want to pan and zoom in and out users using keyboard controls.

You can use the variable to keep track of user feedback for zoom and pan, which you translations () (pan) and scale () (zoom) functions as arguments for the argument.

How can it look with JS / HTML / CSS

HH

Comments