Scale the sketch as if it fit this specific width and height. This will also scale the mouseX and mouseY variables (as well as pmouseX and pmouseY). Note that it will not have an effect on MouseEvent objects (i.e. event.getX() and event.getY()) because their exact behavior may interact strangely with other libraries.
(int)width of the sketch
(int)height of the sketch
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.