GMU:Processing im Park/Emilio Aguas

From Medien Wiki

Contact

Any questions write me here Emilio Aguas

Image & Video sources here | Flickr page

First Assignment

For the first assignment: load and create an animation of nine photos

<videoflash type="vimeo">148517159|640|480|</videoflash>


--- Processing3.0 Code---

PImage img01;
PImage img02;
PImage img03;
PImage img04;
PImage img05;
PImage img06;
PImage img07;
PImage img08;
PImage img09;


void setup() {
  size(600, 400);
  background(155);
  img01 = loadImage("FancyRock01.JPG");
  img02 = loadImage("FancyRock02.JPG");
  img03 = loadImage("FancyRock03.JPG");
  img04 = loadImage("FancyRock04.JPG");
  img05 = loadImage("FancyRock05.JPG");
  img06 = loadImage("FancyRock06.JPG");
  img07 = loadImage("FancyRock07.JPG");
  img08 = loadImage("FancyRock08.JPG");
  img09 = loadImage("FancyRock09.JPG");
}

//changing images for a repeating cycle every 9 seconds
void draw() {
  if (second() % 9 == 0) {
    image(img01, 0, 0, width, height);
  } 
  if (second() % 9 == 1) {
    image(img02, 0, 0, width, height);
  } 
  if (second() % 9 == 2) {
    image(img03, 0, 0, width, height);
  } 
  if (second() % 9 == 3) {
    image(img04, 0, 0, width, height);
  } 
  if (second() % 9 == 4) {
    image(img05, 0, 0, width, height);
  } 
  if (second() % 9 == 5) {
    image(img06, 0, 0, width, height);
  } 
  if (second() % 9 == 6) {
    image(img07, 0, 0, width, height);
  }
  if (second() % 9 == 7) {
    image(img08, 0, 0, width, height);
  } 
  if (second() % 9 == 8) {
    image(img09, 0, 0, width, height);
  } 
}

Second Assignment

Third Assignment