• Show Sketch
/** @peep sketchcode */
size(100, 100); 
smooth(); 
fill(0); 
face(20, 80, 26); 
 
void face(int x, int y, int gap) { 
  line(x+4,0,x, y);           // Nose Bridge 
  line(x, y, x+gap, y);       // Nose 
  line(x+gap, y, x+gap, height); 
  int mouthY = (height+y)/2;
  line(x, mouthY, x+gap, mouthY); // Mouth 
  ellipse(x-gap/2, y/2, 10, 10);    // Left eye 
  ellipse(x+gap, y/2, 10, 10);      // Right eye 
  rect(x-20, y-60,20,1);
  rect(x+20, y-60, 20, 1);
}

Comments

Nobody has said anything yet.