Monday, September 25, 2006

bloody sonia input

Stopped by my knowledges in programming, I couldn't reach the precise effect I wanted: the curves of the lines designed accordind to the sound input. So I decided to explore the noise function (at least, failing that sound input), supposed to produce a more natual motion: I found it quite interesting, especially conjugated to the curveVertex.The effort was more on the aesthetic than on the reactibility. Presentation today: unanimously, the class found the sound input much more interesting. Try again!!

CODE wih noise function presented today, to be compared with the previous one:

void setup(){
size(1200,700);
framerate(5);

}

void draw(){

background(20);

poulpe();
noStroke();
}
void poulpe(){
strokeWeight(0.75);
smooth();
for ( int i = 0; i < 10; i++){


beginShape(LINE_STRIP);
stroke(200);
curveTightness(-2);
curveVertex(0, noise(200));
curveVertex(0, noise(200));
curveVertex(500 , 150);
curveVertex(500 , 250);
curveVertex(1400 , random(250));
curveVertex(1400, noise(250));
endShape();


beginShape(LINE_STRIP);
curveTightness(-1.3);
curveVertex(0, noise(280,400));
curveVertex(0, noise(280,400) );
curveVertex(600, 320);
curveVertex(600, 380);
curveVertex(1200, random(280,490));
curveVertex(1200, noise(280,490));
endShape();

beginShape(LINE_STRIP);
curveTightness(-2.5);
curveVertex(0, noise(430,650));
curveVertex(0, noise(430,650));
curveVertex(300, 450);
curveVertex(300 , 450);
curveVertex(1200 , random(430,600));
curveVertex(1200 , noise(430,600));
endShape();
}

}

0 Comments:

Post a Comment

<< Home