function setup() {
createCanvas(400, 200);
background(220);
}
function draw() {
let spacing = 80;
for (let x = spacing / 2; x < width; x += spacing) {
drawSmiley(x, 40, 60);
}
}
function drawSmiley(x, y, size) {
fill(255, 220, 0);
stroke(0);
ellipse(x, y, size);
fill(0);
ellipse(x - size * 0.2, y - size * 0.15, size * 0.1);
ellipse(x + size * 0.2, y - size * 0.15, size * 0.1);
noFill();
strokeWeight(2);
arc(x, y + size * 0.1, size * 0.5, size * 0.4, 0, PI);
strokeWeight(1);
}