// stphanieaaron@mac.com //Add your variables here int pos1=0; int pos2=0; void setup() { size(600, 600); background(#A234E8); smooth (); } void draw() { background(#A234E8); pos1=pos1+1; pos2=pos2+1; if (pos1==600) { pos1=0; pos2=0; } //first floating happy guy happy(pos1, pos2, 70); //second floating happy guy happy(pos1 -100, pos2-50, 20); //third floating happy guy happy(pos1, pos2+200, 300); //first happy guy happy(300, 400, 100); //second happy guy happy(400, 100, 20); //fourth happy guy happy(50, 500, 30); //fourth happy guy happy(500, 500, 50); } void happy(float happyX, float happyY, float happySize) { // draw mr happyface noStroke (); fill (#FAE844); //face ellipse (happyX, happyY, happySize, happySize); //left eye fill (0); ellipse (happyX - (happySize/5), happyY - (happySize/5), happySize / 5, happySize / 5); //right eye fill (0); ellipse (happyX + (happySize/5), happyY - (happySize/5), happySize / 5, happySize / 5); //mouth stroke (0); line (happyX - (happySize/4), happyY +(happySize/4), happyX +(happySize/4), happyY +(happySize/4)); }