GMU:Processing im Park/Pascal Delor

From Medien Wiki
< GMU:Processing im Park
Revision as of 10:44, 17 December 2015 by Pd (talk | contribs) (add code)

Pascal Delor

homework 1

void setup()

 {
 size(400,400);
background(0,0,0);
frameRate(9);
println(frameCount);
println(frameRate);
}

void draw()

 {
 PImage image1 = loadImage("park_001.jpg");
PImage image2 = loadImage("park_002.jpg");
PImage image3 = loadImage("park_003.jpg");
PImage image4 = loadImage("park_004.jpg");
PImage image5 = loadImage("park_005.jpg");
PImage image6 = loadImage("park_006.jpg");
PImage image7 = loadImage("park_sieben.jpg");
PImage image8 = loadImage("park_acht.jpg");
PImage image9 = loadImage("park_009.jpg");
if (frameCount % 9 == 1) { image(image1,0,0,400,400); } if (frameCount % 9 == 2) { image(image2,0,0,400,400); } if (frameCount % 9 == 3) { image(image3,0,0,400,400); } if (frameCount % 9 == 4) { image(image4,0,0,400,400); } if (frameCount % 9 == 5) { image(image5,0,0,400,400); } if (frameCount % 9 == 6) { image(image6,0,0,400,400); } if (frameCount % 9 == 7) { image(image7,0,0,400,400); } if (frameCount % 9 == 8) { image(image8,0,0,400,400); } if (frameCount % 9 == 0) { image(image9,0,0,400,400); } println(frameCount % 9); println(frameCount); println(frameRate); }

homework 2

homework 3