GMU:Processing im Park/Katja Bliß/code1

From Medien Wiki
size(300, 300);

//Loading all Images
PImage image1 = loadImage("Rotten1.jpg");
PImage image2 = loadImage("Rotten2.jpg");
PImage image3 = loadImage("Rotten3.jpg");

PImage image4 = loadImage("Rotten4.jpg");
PImage image5 = loadImage("Rotten5.jpg");
PImage image6 = loadImage("Rotten6.jpg");

PImage image7 = loadImage("Rotten7.jpg");
PImage image8 = loadImage("Rotten8.jpg");
PImage image9 = loadImage("Rotten9.jpg");

//Display the images in a 3 by 3 grid

background(255, 0, 0);
image(image1, 0, 0, 100 , 100);
image(image2, 100, 0, 100 , 100);
image(image3, 200, 0, 100 , 100);

image(image4, 0, 100, 100 , 100);
image(image5, 100, 100, 100 , 100);
image(image6, 200, 100, 100 , 100);

image(image7, 0, 200, 100 , 100);
image(image8, 100, 200, 100 , 100);
image(image9, 200, 200, 100 , 100);

saveFrame("Rotten_grid.jpg");