xxxxxxxxxx
30
function setup() {
createCanvas(400, 400);
background(250, 220, 220);
rows = 7;
cols = 7;
startx = 50;
starty = 50;
space = 50;
for (row = 0 ; row<rows; row ++ ){
for (col = 0; col < cols; col ++){
bunny(startx + (space*col), starty + (space*row));
}
}
}
function bunny(x, y) {
noStroke();
redder = random(50, 100);
fill(250, 250 - redder, 250 - redder);
ellipse(x - 10, y - 20, 10, 25);
ellipse(x + 10, y-20, 10, 25);
line( x - 10, y, x-5, y);
circle(x, y, 30);
strokeWeight(2);
stroke(180, 140, 140);
line( x - 10, y, x-5, y);
line(x + 5, y, x + 10, y );
point(x, y + 3);
}