void setup( ) { size(800, 800); background(255); strokeWeight(2); smooth( ); frameRate(10); } void draw( ) { noStroke( ); mouse(0,0,pick( )); } void mouse(int xpos, int ypos, color c) { fill(c); noStroke( ); ellipse(50+xpos,50+ypos,50,50); ellipse(25+xpos,30+ypos,30,30); ellipse(75+xpos,30+ypos,30,30); fill(0); ellipse(40+xpos,44+ypos, 10,10); ellipse(60+xpos,44+ypos, 10,10); stroke(0); line(20+xpos,50+ypos, 48+xpos,60+ypos); line(80+xpos,50+ypos, 52+xpos,60+ypos); line(25+xpos,70+ypos, 48+xpos,60+ypos); line(75+xpos,70+ypos, 52+xpos,60+ypos); } color pick( ) { return color(random(255), random(255), random(255)); } void owl (int x, int y, color c) { stroke(c); strokeWeight(70); line(x, -35+y, x, -65+y); // body noStroke( ); fill(255); ellipse(-17.5+x, -65+y, 35, 35); // left eye dome ellipse( 17.5+x, -65+y, 35, 35); // right eye dome arc(0+x, -65+y, 70, 70, 0, PI); fill(0); ellipse(-14+x, -65+y, 8, 8); // left eye ellipse( 14+x, -65+y, 8, 8); // right eye quad(0+x, -58+y, 4+x, -51+y, x, -44+y, -4+x, -51+y); }