From b507fd2bf22993b734bb41371da6b5160ed83995 Mon Sep 17 00:00:00 2001 From: benfry Date: Sun, 17 Apr 2011 16:55:37 +0000 Subject: [PATCH] clarify instructions in examples --- .../Basics/Web/LoadingImages/LoadingImages.pde | 15 ++++++--------- .../Basics/Web/LoadingImages/LoadingImages.pde | 16 ++++++++-------- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/android/examples/Basics/Web/LoadingImages/LoadingImages.pde b/android/examples/Basics/Web/LoadingImages/LoadingImages.pde index 325fbba56..e2a958d22 100644 --- a/android/examples/Basics/Web/LoadingImages/LoadingImages.pde +++ b/android/examples/Basics/Web/LoadingImages/LoadingImages.pde @@ -1,16 +1,13 @@ /** * Loading Images. * - * Loading a recent image from the US National Weather Service. - * Notice the date in the upper left corner of the image. - * Processing applications can only load images from the network - * while running in the Processing environment. This example will - * not run in a web broswer and will only work when the computer - * is connected to the Internet. + * Loads an image from over the network. Be sure to have INTERNET + * permission enabled, otherwise img will always return null. */ size(200, 200); PImage img1; -img1 = loadImage("http://www.processing.org/img/processing_beta_cover.gif"); -image(img1, 0, 45); - +img1 = loadImage("http://processing.org/img/processing_cover.gif"); +if (img != null) { + image(img1, 0, 0); +} diff --git a/java/examples/Basics/Web/LoadingImages/LoadingImages.pde b/java/examples/Basics/Web/LoadingImages/LoadingImages.pde index 325fbba56..7c799fda8 100644 --- a/java/examples/Basics/Web/LoadingImages/LoadingImages.pde +++ b/java/examples/Basics/Web/LoadingImages/LoadingImages.pde @@ -1,16 +1,16 @@ /** * Loading Images. * - * Loading a recent image from the US National Weather Service. - * Notice the date in the upper left corner of the image. * Processing applications can only load images from the network - * while running in the Processing environment. This example will - * not run in a web broswer and will only work when the computer - * is connected to the Internet. + * while running in the Processing environment. + * + * This example will not run in a web broswer and will only work when + * the computer is connected to the Internet. */ size(200, 200); PImage img1; -img1 = loadImage("http://www.processing.org/img/processing_beta_cover.gif"); -image(img1, 0, 45); - +img1 = loadImage("http://processing.org/img/processing_cover.gif"); +if (img != null) { + image(img1, 0, 0); +}