To view this content, you need to install Java from java.com

Source code: random_image

Built with Processing


No. 9
random images
by paul glennon 2005

This is the second idea towards a prototype.

EXPRESSIONS - using a short digital film, taking stills and random values added to the pictures. Great results!

//random images by paul glennon

float move; //allows the names to be added to random
float move2; //""
float move3; //""
PImage one; // use the PIamge and I choose the name
PImage two;
PImage three;
PImage four;
void setup(){
one = loadImage("me1.jpg"); // as it states
two = loadImage("me2.jpg");
three = loadImage("me3.jpg");
four = loadImage("me4.jpg");
size(300,200);
background(0);
framerate(5); //higher - faster / lower - slower
}
void draw(){
move = random(-20,300); //anything in between these numbers
move2 = random(-20,200); //""
move3 = random(-10,220); //""
image(one,move,move2,width/2,height/2);
image(two,move2,move,width/3,height/3); // image/random/random/w/h
image(three,move2,move3,width/3,height/3);
image(four,move,move3,width/3,height/3);
}