This example is for Processing 3+. If you have a previous version, use the examples included with your software. If you see any errors or have suggestions, please let us know.

Loading Images.

Processing applications can load images from the network.


PImage img;

void setup() {
  size(640, 360);
  img = loadImage("http://processing.org/img/processing-web.png");
  noLoop();
}

void draw() {
  background(0);
  if (img != null) {
    for (int i = 0; i < 5; i++) {
      image(img, 0, img.height * i);
    }
  }
}