/*Claire Yoon
Section E
claireyo@andrew.cmu.edu
Assignment-03
*/
function setup() {
createCanvas(480, 640);
}
function draw() {
// sky from night to day
background (138 - mouseY, 225 - mouseY, 255 - mouseY)
// pulling up blinds
push();
noStroke ();
fill(237,236, 230);
rect(0, 60 - mouseY, 480, 50 + mouseY / 50);
rect(0, 120 - mouseY, 480, 50 + mouseY / 50);
rect(0, 180 - mouseY, 480, 50 + mouseY / 50);
rect(0, 240 - mouseY, 480, 50 + mouseY / 50);
rect(0, 300 - mouseY, 480, 50 + mouseY / 50);
rect(0, 360 - mouseY, 480, 50 + mouseY / 50);
rect(0, 420 - mouseY, 480, 50 + mouseY / 50);
rect(0, 480 - mouseY, 480, 50 + mouseY / 50);
fill(216,213, 195);
rect(0, 0, 480, 55);
// counter
fill(166,124,82);
noStroke();
rect(0,560,480,80);
pop();
}
I really enjoyed playing around with all the different types of elements we learned so far such as position, translating, rotating, and use of color.