No edit summary |
|||
Line 5: | Line 5: | ||
== Homework 1 == | == Homework 1 == | ||
[[File:Rotten_grid.jpeg]] | [[File:Rotten_grid.jpeg]] | ||
[[File:Rotten_interactive.gif]] | |||
Revision as of 14:51, 17 December 2015
Katja Bliß
Homework 1
Homework 2
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);
}
}