Hi, I am having trouble changing the size of my surface in a sketch.
Basically I load an image, set the surface size to the size of the image then draw circles on the surface.
The issue is that Processing is actually scaling the surface after I draw the circles instead of before so if my image is 1000x1000 pixels and I start with a size of 100,100, everything gets scales 10x.
I would like to resize the surface prior to drawing the circles.
It seems like the resize doesn’t happen until the end of draw().
Is there any way round this?
size(100,100); img = loadImage(path); int sx = img.width; int sy = img.height; surface.setResizable(true); surface.setSize(sx, sy); // now I add all my circles