// Draw smiley faces using a function void setup() { size(400,400); background(255); // Plot faces at different places smiley(50,50); smiley(350,50); smiley(300,300); } void draw() // No need to do anything { } // Draw a smiley face at x,y void smiley(int x,int y) { strokeWeight(5); // Face and mouth fill(255,255,0); ellipse(x,y, 180,180); arc(x,y, 130,130, 0,PI); // Eyes fill(0); ellipse(x-30,y-20, 20,20); ellipse(x+30,y-20, 20,20); }