View allAll Photos Tagged Generative
/*processingworkshop example by philip whitfield and martin fuchs, hyperwerk 08*/
float angle = 170;
float leng = 90;
PVector last;
float lastAngle = 0;
void setup(){
size(800, 650);
last = new PVector(width/2,height/2);
smooth();
background(255);
}
void draw(){
PVector dir;
stroke(0,80);
float pre = 1;
if(frameCount % 9 == 0 || frameCount % 7 == 0 || frameCount % 2 == 0){
pre = -1;
}
lastAngle += angle*pre;
dir = new PVector(sin(radians(lastAngle))*leng, cos(radians(lastAngle))*leng);
line(last.x, last.y, last.x+dir.x, last.y+dir.y);
last.add(dir);
}
void mouseClicked(){
last = new PVector(mouseX,mouseY);
}
void keyReleased(){
if(key == ' ')
save(day()+"_"+month()+"_"+year()+"__"+minute()+"_"+second()+".png");
if(key == 'c')
background(255);
}
Exhibition of my generative portraits series at my university. All portraits have been done with Processing.
70 x 100 cm
Duplex on Hahnemühle Natural Line (archival paper) using pigmented inks.
Check single images:
www.flickr.com/photos/dianalange/sets/72157632773162506/
Get the basic code on my openprocessing portfolio:
HAWK FH HHG
2013
I saw a Georg Nees print in a pdf of an exhibition catalog of a show called Computer Art held at the National Gallery of Modern Art in New Delhi in 1972. I thought to make a similar print with Processing, but then I did something slightly different.
// HACKPACT
// Showcase of 20 brief experiments (sound machines) we coded during november (MMXI).
// All of them explore the sound/graphic co-relation.
// Built with Processing and almost all of the audio with SuperCollider
// More info/detail about our codes here: www.realitat.com/HACKPACT