xxxxxxxxxx
42
/*
This program draws a snowman
*/
function setup() {
createCanvas(400, 400);
background(220);
// head
ellipse(width/2, height/4, 50, 50)
// left eye
ellipse(width/2 -7, height/4 - 5, 10, 10)
// right eye
ellipse(width/2 + 7, height/4 - 5, 10, 10)
// nose
textSize(16)
text("v", width/2 -4, height/4 + 12 )
// mouth
ellipse(width/2, height/4 + 17, 10, 10)
// body
ellipse(width/2, height/4 + 25 + 50, 100, 100)
// buttons
rect(width/2-5, height/2-50, 10, 10)
rect(width/2-5, height/2-25, 10, 10)
rect(width/2-5, height/2, 10, 10)
// legs
ellipse(width/2, height/4 + 25 + 100 + 75, 150, 150)
}
function draw() {
}