// This is an small adapation of Irene Mouthann's
// Snowman program.
// https://www.openprocessing.org/sketch/5120/

// snowman is now in a function

void setup () {
  // frame
size(300,300);

}

void draw() {
  background(255) ;
  snowman(150, 200, 1.5) ;
  snowman(100, 100, 0.5) ;
}

void snowman (int x, int y, float size) {  
  rectMode(CENTER);
  
  // body
  stroke(0);
  fill(250);  
  ellipse(x, y+size*10, size*100, size*100);

  // head
  fill(250);
  ellipse(x, y-size*50, size*60, size*60);

  // eyes
  fill(0);
  ellipse(x-size*8, y-size*58, size*5, size*5);
  ellipse(x+size*8, y-size*58, size*5, size*5);

  // nose
  fill(255, 200, 0);
  ellipse(x, y-size*48, size*7, size*7);

  // arms
  stroke(0);
  line(x+size*50, y, x+size*60, y-size*20);
  line(x-size*50, y, x-size*60, y-size*20);

  // smile
  fill(255);
  stroke(0);
  arc(x, y-size*44, size*30, size*25, -TWO_PI, -PI);

  // hat
  fill(mouseX, 0, mouseY);
  rect(x, y-size*95, size*34, size*40);
  line(x-size*25, y-size*75, x+size*25, y-size*75);

  // println("Let it Snow!");

}
