We are about to switch to a new forum software. Until then we have removed the registration on this forum.
From my understanding, setting a background image in processing requires the size of the window to match the dimension of the image.
PImage img = loadImage("background.jpg"); //a 100x100 background image. size(100,100); background(img);
However, since size() does not take in variables, how are we suppose to define a background with variable dimensions?
I have tested with the surface.setSize() function but it does not see to work.
PImage img = loadImage("background.jpg"); //a 100x100 background image. surface.setSize(img.width,img.height); background(img);