void setup() { size(640, 360); // The background image must be the same size as the parameters // into the size() method. In this program, the size of the image // is 650 x 360 pixels. bg = loadImage("moonwalk.jpg"); }
640 does not equal 650. Experience tells me that using an image that is the same size as the passed to size fails. It seems that some accounting is needed for window chrome or something. In any event, this example wrong in one way or another.
Issue by Neurogami Monday Apr 01, 2013 at 23:45 GMT Originally opened as https://github.com/processing/processing-web/issues/92
On page http://processing.org/learning/basics/backgroundimage.html it says this:
void setup() { size(640, 360); // The background image must be the same size as the parameters // into the size() method. In this program, the size of the image // is 650 x 360 pixels. bg = loadImage("moonwalk.jpg"); }
640 does not equal 650. Experience tells me that using an image that is the same size as the passed tosize
fails. It seems that some accounting is needed for window chrome or something. In any event, this example wrong in one way or another.