We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm wondering how you can make the window contain (for example) 640x480 pixels, but be able to stretch to set sizes (and resolutions) like 1920x1080, 1600x900, 1366x768, 1280x768, 800x600 etc. This feature is seen a lot in games where you have configuration options to change the game resolutions (as well as choose between fullscreen and windowed).
I know how to resize the window normally by calling the setup() function again with different values for size, but this changes the number of pixels being worked with and will not stretch the window and its contents. Also, because it changes the number of pixels, large chunks of my programs may start to produce unwanted and/or unpredictable results unless I program using percentages of the screen rather than absolute pixel values, this can become tedious and sometimes plain unfeasible.
Thank you for your time!