int swidth = 500; int sheight = 500; PFont font; ArrayList boys; ArrayList msgs; void setup() { size (swidth,sheight); framerate(15); smooth(); background(255); font = loadFont("ArialNarrow-18.vlw"); textFont(font, 12); boys = new ArrayList(); msgs = new ArrayList(); msgs.add("I am verrry busy"); msgs.add("I am very very busy right now"); msgs.add("Oh! Sorry, but I'm very busy."); msgs.add("Ummm.. can't you ask someone else? I am busy. "); msgs.add("Don't you have something to do? I am so so busy"); msgs.add("Sorry! Busy!"); msgs.add("Right now? Oh no! I can't!"); msgs.add("Busy!"); msgs.add("Am... no way! I got so many thins to do right now!"); msgs.add("Forget it! I have tons of things to do!"); msgs.add("What? No! busy!"); msgs.add("Got to get up early tomorrow!"); msgs.add("Hehe.. sure. Fo-gerit!"); msgs.add("Nah... bee-see!!"); msgs.add("Negro... tomá-telá. Toy-cupado"); msgs.add("Occupé"); msgs.add("DND"); msgs.add("Muchou Ocupadou"); msgs.add("Busy!"); msgs.add("I am verrry busy"); msgs.add("I am very very busy right now"); msgs.add("Oh! Sorry, but I'm very busy."); msgs.add("Ummm.. can't you ask someone else? I am busy. "); msgs.add("Don't you have something to do? I am so so busy"); msgs.add("Sorry! Busy!"); msgs.add("Right now? Oh no! I can't!"); msgs.add("J'suis Occupé!"); msgs.add("Am... no way! I got so many thins to do right now!"); msgs.add("Hehe.. sure. Fo-gerit!"); msgs.add("Nah... bee-see!!"); msgs.add("Negro... tomá-telá. Toy-cupado"); msgs.add("Occupé"); msgs.add("DND"); msgs.add("Muchou Ocupadou"); msgs.add("Besetz!"); msgs.add("I am verrry busy"); for (int i=0; i0)?1:-1))*random(-.6,1.2) + random (-1,1)*(x2-x1); x = x * 0.98; y2 = (y1+y2)/2; y1 = (y+y1)/2; y = y + propulsion*(((y>0)?1:-1)*random(-0.6,1.3)) + random (-1,1)*(y2-y1); y = y * 0.98; propulsion = propulsion *0.95; fill(r,g,b); noStroke(); ellipse(x2+swidth/2,y2+sheight/2,20,20); stroke(255); noFill(); ellipse(x2+swidth/2+5,y2+sheight/2-4,3,3); ellipse(x2+swidth/2-5,y2+sheight/2-4,3,3); line(x2+swidth/2+2, y2+sheight/2+4,x2+swidth/2-2, y2+sheight/2+4); if ( (dist(mouseX-swidth/2,mouseY-sheight/2,x2,y2)<15) ) { fill(0,0,0,220); textAlign(CENTER); textFont(font, 12); text(this.msg, x2+swidth/2, y2+sheight/2-12); propulsion = 60; } } }