Initial Commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user