//Valondine Jeudy //In Class Exercises //October 8, 2014 //Prof. M String title = "In Class Exercise - Flock of Birds"; String author= "Valondine Jeudy"; //global variables float x, y, w, h; //location and size int n; //number of birds void setup() { //setup size( 800, 700); restart(); } void draw() { // sky background( 0, 0, 140); // 1 bird fill( 255, 255, 0); flock( n, x, y, w, h ); //method to make 1 bird x += random(20); y= y +10 - random(20); textSize(15); text(title, width/2-165, 30); text (author, width/2-375, height-20); } void restart() { // restart n= int ( random(10, 20) ); //number of birds betweeb 5 and 15 //location x= random(width/2); //0-200 y= random(height/2);//0-200 //size w= random(20, 50); h= w/2; } void bird( float x, float y, float w, float h ) { //// draw a bird triangle( x, y, x-w, y-h, x-w, y+h ); } void flock( int n, float x, float y, float w, float h ) { // draw birds float xx= x; float hh= h * 5; // height float ww= w; // width bird( xx, y, w, h ); //methods to make birds. xx= xx - 2*w; for (int amountBirds=0; amountBirds