xxxxxxxxxx
79
function setup() {
createCanvas(400, 400);
background('#ecece4');
r = 4
c = 4
startx = 60;
starty = 65;
space = 92;
for(i=0; i<r; i++){
for(j=0; j<c; j++){
frog(startx + (space*j), starty +(space*i));
}
}
}
//-------Motif------
function frog(x,y){
//BODY
noStroke();
fill('#a0b6aa');
ellipse(x, y, 75, 40);
noStroke();
fill('#d0e0d5');
ellipse(x+1, y+10, 60, 20);
//EYES
fill('#a0b6aa');
ellipse(x-20, y-15, 20, 12);
ellipse(x+20, y-15, 20, 12);
fill('#55552b');
ellipse(x-20, y-15, 10, 7);
ellipse(x+20, y-15, 10, 7);
//LEFT HAND
noFill();
stroke('#c3c39f');
strokeWeight(4);
beginShape();
curveVertex(x-15, y-1);
curveVertex(x-15, y+12);
curveVertex(x-10, y+15);
curveVertex(x-5, y+15);
curveVertex(x-5, y+15);
endShape();
//RIGHT HAND
noFill();
stroke('#c3c39f');
strokeWeight(4);
beginShape();
curveVertex(x+15, y-1);
curveVertex(x+15, y+12);
curveVertex(x+10, y+15);
curveVertex(x+5, y+15);
curveVertex(x+5, y+15);
endShape();
//MOUTH
stroke('#55552b');
strokeWeight(2);
line(x-5, y-4, x+5, y-4);
}