We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsWebsite,  Documentation,  Book Bugs › loadImage reference example (typo)
Page Index Toggle Pages: 1
loadImage reference example (typo) (Read 703 times)
loadImage reference example (typo)
Mar 8th, 2008, 11:00am
 
There is a typo at http://processing.org/reference/loadImage_.html

The third example is as follows:

PImage online;

void setup() {
 String url = "http://mt0.google.com/mt?n=404&v=w2.61&x=9913&y=12119&zoom=2";
 online = loadImage(url, "png");
 noLoop();
}

void draw() {
 image(b, 0, 0);
}


where it shall read:

PImage online;

void setup() {
 String url = "http://mt0.google.com/mt?n=404&v=w2.61&x=9913&y=12119&zoom=2";
 online = loadImage(url, "png");
 noLoop();
}

void draw() {
 image(online, 0, 0);
}

Note: the change required is in draw() as "b" as the PImage variable name appears to have been copy-pasted from the two preceding examples.

HTH,

Pierre
Re: loadImage reference example (typo)
Reply #1 - Mar 27th, 2008, 5:22am
 
Thank you! I fixed the example, it will be online at the next update.
Page Index Toggle Pages: 1