Hey, I’m really struggling aspect ratio on processing, i want to be able to resize the screen and when i resize it the object inside is also resized according to the screen. I have currently used:
surface.setResizable(true);
surface.setLocation(90, 90);
(can also use scale(); or would that be wrong)
This does allow me to change my screen but only o a certain limit and the object remains the same.
Can someone please guide me through, as to what am i doing wrong.
within the context of p5.js - I am trying to digest the process of maintaining the aspect ratio of an image when resizing the window. Is it possible to position and scale images based on percentages??