submission by Wizard1011 for logic and functions (View the other submissions)
function Smile (myx,myy){
fill(255,255,25)
ellipse(myx,myy,50,50)
fill(0,0,0)
ellipse(myx-10,myy-9,10,10)
ellipse(myx+10,myy-9,10,10)
strokeWeight(2)                              //While editing the code press space for a chance to 
                                                       //change the number of faces
line(myx-10,myy+10,myx+10,myy+10)
}

function setup(){
  var myCanvas = createCanvas(windowWidth,windowHeight); //you must keep this line 
 x = random(10)
 y = random(10)
  }
function draw() {
Smile(200,100)
Smile(300,100) 
Smile(400,100)
Smile(500,100)
Smile(600,100)
if (x >2){
Smile(100,300)
} 
if (y>= 5){
Smile(200,300)

}

}