prisonerjohn / processing-web

0 stars 0 forks source link

[CLOSED] Example for the "background" method contradicts itself #92

Open prisonerjohn opened 10 years ago

prisonerjohn commented 10 years ago

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 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.

prisonerjohn commented 10 years ago

Comment by REAS Tuesday Apr 02, 2013 at 02:23 GMT


It's simply a typo in the comment. Thank you for pointing it out. I'll fix it at the next release.