I'm working on a project in p5.js where I need to be able to define obscure canvas sizes that are much bigger then my browser window. I essentially need to maintain a p5js pixel size (ex. 3840px, 1920px) but have the entire canvas in view. Think of how you can zoom in and out of a canvas in photoshop, thats the functionality I'm trying to achieve.
For now, zooming in and out with the default browser functionality is Okay but not ideal and causes some other errors with arrow key presses etc. I've looked all over processing, p5 and html canvas forums and can't seem to find my exact scenario.