Week 12: Course Evaluation

Picture 34

Advertisements

Week 11: Multiple Movie Frames

Screen Shots:
Screen Shot 2013-12-13 at 12.45.50 AM
Screen Shot 2013-12-13 at 12.46.10 AM

Video:

Code:
import processing.video.*;

Movie movie;
PImage[][] img;
int m, n;
int w, h;
color tintColor;
float nx, ny;
void setup(){
size (1300, 840);
movie=new Movie (this, “bouncingball.mov”);
movie.loop();
m=3;
n=3;
reInitialize();
}
void reInitialize(){
w= (int) (0.9*width/m);
h= (int) (0.9*height/n);
img = new PImage [m][n];
for (int i=0; i<m; i++){
for (int j=0; j<n; j++){
img[i][j] = createImage (w, h, RGB);
}
}
nx= random(0.02);
ny= random(0.02);
}
void movieEvent(Movie m) {
m.read();
}
void draw(){
background (0);
for (int i=0; i<m; i++){
for (int j=0; j<n; j++){
int sx= (int) map (noise (i*j, nx*frameCount), 0,1,0, width);
int sy= (int) map (noise (i*j+5, ny*frameCount), 0,1,0, height);
int sw=w;
int sh=h;
int dx=0;
int dy=0;
int dw=w;
int dh=h;
float x = map(i,0,m,0, width);
float y = map(j,0,n,0, height);
img[i][j].copy(movie, sx, sy, sw, sh, dx, dy, dw, dh);
image(img[i][j],x,y);
}
}
}
void keyPressed (){
if (key== ‘ ‘){
m = (int) random(2, 8);
n = (int) random(2, 8);
reInitialize();
}
}

Week 12: Final

Screen Shots:
Picture 30 Picture 31 Picture 32

Video:

Code:

import processing.video.*;
Movie movie;
PImage[][] img;
int m, n;
int w, h;
color tintColor;
float nx, ny;
void setup(){
size (1300, 840);
movie=new Movie (this, “NewProject.m4v”);
movie.loop();
m=3;
n=3;
reInitialize();
}
void reInitialize(){
w= (int) (0.9*width/m);
h= (int) (0.9*height/n);
img = new PImage [m][n];
for (int i=0; i<m; i++){
for (int j=0; j<n; j++){
img[i][j] = createImage (w, h, RGB);
}
}
nx= random(0.02);
ny= random(0.02);
}
void movieEvent(Movie m) {
m.read();
}
void draw(){
background (0);
for (int i=0; i<m; i++){
for (int j=0; j<n; j++){
int sx= (int) map (noise (i*j, nx*frameCount), 0,1,0, width);
int sy= (int) map (noise (i*j+5, ny*frameCount), 0,1,0, height);
int sw=w;
int sh=h;
int dx=0;
int dy=0;
int dw=w;
int dh=h;
float x = map(i,0,m,0, width);
float y = map(j,0,n,0, height);
img[i][j].copy(movie, sx, sy, sw, sh, dx, dy, dw, dh);
image(img[i][j],x,y);
}
}
}
void keyPressed (){

if (key== ‘ ‘){
m = (int) random(2, 8);
n = (int) random(2, 8);
reInitialize();
}
}

import processing.video.*;
Movie movie;
void setup(){
size (1300, 1300);
movie = new Movie (this, “LocascioFinal.m4v.mp4”);
movie.loop();
}
void draw(){
background (0);
image (movie, 0, 0);
int amtPosterize = (int) map (mouseX, 0, width, 2, 20);
filter (POSTERIZE, amtPosterize);
}
void movieEvent (Movie m) {
m. read();
}
void keyPressed (){
movie.jump (0.5*movie.duration());
movie.jump (0.3*movie.duration());
movie.jump (0.8*movie.duration());
}

Week 6-9: Midterm: BFA Open House

 

Screen Shots:
Picture 6 Picture 8 Picture 9 Picture 10

Video:

Code:
void setup () {

size (700,600);
background(255);
PImage webnick;
String url = “http://24.media.tumblr.com/c736e19e9bc85b7e26b0a28e5b0cba9a/tumblr_mvt32fsLK61r18v68o1_1280.png&#8221;;
webnick = loadImage (url);
image (webnick, 100, 100);
}

void draw () {

noStroke();
fill(220,pmouseY,pmouseX,70);
ellipse(mouseX,mouseY,pmouseX-mouseY,20);

}
void mousePressed(){
background (0);
PImage webnick;
String url = “http://31.media.tumblr.com/916a342b3c887f2f59cafc57c8db0489/tumblr_mvt3654t8L1r18v68o1_1280.png&#8221;;
webnick = loadImage (url);
image (webnick, 100, 100);

}

void keyPressed(){
background (255);
PImage webnick;
String url = “http://25.media.tumblr.com/da9840cc7f2edf715bfd1600389c9126/tumblr_mvt399G8fo1r18v68o1_500.png&#8221;;
webnick = loadImage (url);
image (webnick, 100, 100);

 

if (key==’a’||key ==’A’){
saveFrame (“desktop/screenshot####.png”);

}
}

Week 10: Free Moving Ellipse

Screen Shots:
Picture 22Picture 21

Video:


Code:

int t;

void setup () {

size (600, 600);
background (225);
fill (0);
}

void draw (){

float x = map (noise (0.01*t), 0, 1, 0, width);
float y = map (noise (0.01*t+5), 0, 1, 0, height);

float w = map (noise (0.07*t+60), 0, 200, 50, 1);
float h = map (noise (0.07*t+10), 0, 1, 50, 200);
float r = map (noise (0.07*t+90), 0, 86, 0, 13);
float g = map (noise (0.07*t+25), 0, 1, 0, 255);
float b = map (noise (0.07*t+40), 70, 90, 0, 0);

fill (r,g,b);

ellipse (x, y, w, h);
t++;
}

Week 9: Pointillism

Screen Shot:
tswiftScreen Shot 2013-12-13 at 1.42.54 AM

Code:

PImage img;
int smallPoint;

void setup() {
size(700, 700);
img = loadImage(“tswift.jpg”);
smallPoint = 10;

imageMode(CENTER);
noStroke();
background(255);
}

void draw() {
float pointillize = map(mouseX, mouseY, width, smallPoint, 30);

int x = int(random(img.width));
int y = int(random(img.height));
color pix = img.get(x, y);
fill(pix, 128);
rect(x, y, pointillize, pointillize);
}

Week 4: Random Grid (2)

Screen Shots:
Picture 18 Picture 19

Video:

Code:

void setup (){
size (300,300);

}
void draw (){
background (150);
strokeWeight (5);
stroke (0);
for (int y=0; y<height; y=y+10) {
for (int x=0; x<width; x=x+10) {
int distance =abs (mouseX-x);
int Ydistance =abs (mouseY-y);
fill (distance, Ydistance, 300);

rect (x,y,700,700);

}
}
}