GMU:Processing im Park/Katja Bliß: Difference between revisions

From Medien Wiki
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 45: Line 45:
[[File:chairs_1.gif]] [[File:chairs_2.gif]]  
[[File:chairs_1.gif]] [[File:chairs_2.gif]]  


[http://www.uni-weimar.de/medien/wiki/GMU:Processing_im_Park/Katja_Bli%C3%9F/code4 Sourcecode]


<source lang="java">
== Homework: Soundfiles in the map ==


int n = 3;
[[File:Parkhoehle_katja.png]]
PImage[] images = new PImage[n];


// offset to the reference point
[http://www.uni-weimar.de/medien/wiki/GMU:Processing_im_Park/Katja_Bli%C3%9F/source7 Sourcecode]
int dx = 100;
int dy = 200;


// factor to slow our animation down
== Homework: Video Delay ==
int slowdown = 4;


// zoom factor for our image
[[File:Video_delay_Katja.png]]
float zoom = 0.5;


void setup() {
[http://www.uni-weimar.de/medien/wiki/index.php5?title=GMU:Processing_im_Park/Katja_Bli%C3%9F/code6 Sourcecode]
 
  // canvas size
  size(600, 400);
 
  // start out with a white background
  background(255);
 
  // load images into the array using a loop
  for(int i=0; i < n; i++) {
   
    // load the image
    images[i] = loadImage("chair_" + i + ".gif");
   


    images[i].mask(images[i]);
== Homework: Interactive Camera ==
  }
 
}


Coming soon...


void draw() {
== Homework: Labyrinth ==
 
  // pick the index of an image
  int pick = (frameCount / slowdown) % n;


  // move to the mouse position
Coming sooner.....
  translate(mouseX , mouseY);
 
  // scale the image
  scale(zoom);
 
  // move to the reference point
  translate(-dx, -dy);
 
  // get image from the array and display it
  image(images[pick], 0, 0);
save("image.gif");
}
</source>

Latest revision as of 14:00, 28 January 2016

Katja Bliß

My Profile

Homework 1

Rotten grid.jpeg Rotten interactive.gif

left picture: Sourcecode

right picture: Sourcecode


Homework 2

Rillen.gif

PImage img;
PImage sourceImage;

void setup(){
 size(500, 500);
 
 sourceImage = loadImage ("bild2.jpg");
 image (sourceImage, 0, 0, 500, 500);
 
}

void draw(){
 img = loadImage ("bild3.jpg");
 int x = 30;
 int width = 450;
 int height = 10;
 img.resize(500, 500);
 
 for (int i = 40; i < 441; i = i + 20) {
   copy(img, x, i, width, height, x, i, width, height);
 }
 
}

Homework 3

Chairs 1.gif Chairs 2.gif

Sourcecode

Homework: Soundfiles in the map

Parkhoehle katja.png

Sourcecode

Homework: Video Delay

Video delay Katja.png

Sourcecode

Homework: Interactive Camera

Coming soon...

Homework: Labyrinth

Coming sooner.....