function setup() {
createCanvas(600, 400);
background(255,250,205);
}
function draw() {
for (var x=10; x<600; x=x+20) {
for(var y=10; y<400; y= y+20) {
stroke(135,206,235);
fill(135,206,235);
rect(x,y,1,10); //rain on background
}
}
//small white rectangles
for (var a=30; a<600; a=a+80) {
for(var b=30; b<400; b=b+160) {
stroke(0,0,0);
fill(255,255,255);
triangle(a-10,b-5,a-10,b-20,a,b-10); //Totoro's left ear
triangle(a,b-10,a+10,b-20,a+10,b-5); //Totoro's right ear
ellipse(a,b,20,30); //Totoro's body
fill(0,0,0);
ellipse(a-4,b-4,3,4); //Totoro's left eye
ellipse(a+4,b-4,3,4); //Totoro's right eye
}
}
for (var c=70; c<600; c=c+80) {
for(var d=110; d<400; d=d+160) {
fill(0,0,0);
arc(c,d,30,30,PI,0);
rect(c-1.5,d,3,20);
} //Umbrella
}
}
For this project, I used the classic toddler wallpaper color of baby yellow and added rain as a special touch. I used the baby white Totoro and umbrellas (a recurring symbol of Totoro) as the recurring pattern of the wallpaper.