Loading Images

Processing applications can load images from the network.

/** * Loading Images. * * Processing applications can load images from the network. */ PImage img; void setup() { size(640, 360); img = loadImage("https://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); } } } 

Related Examples

This example is for Processing 4+. 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.