still life
This is my processing drawing for the still life exercise. The background continuously flickers and changes color :) Sorry if it hurts your eyes
//Catherine Liu
void setup () {
size(500, 500);
noStroke();
}
void draw() {
//background
background(random(0, 255), random(0, 255), random(0, 255));
//table
fill (201, 65, 65);
rect(0, 250, 500, 250);
//shadow of basket
fill(129, 40, 40);
quad(50, 380, 420, 380, 470, 415, 70, 415);
//basket
fill(98, 59, 39);
rect(50, 230, 250, 150);
fill(175, 107, 73);
quad(300, 230, 320, 260, 320, 410, 300, 380);
fill(175, 107, 73);
quad(50, 230, 70, 260, 70, 410, 50, 380);
fill(132, 78, 51);
rect(70, 260, 250, 150);
//shadow of white vase
fill(129, 40, 40);
quad(220, 415, 400, 415, 410, 425, 230, 425);
//light part of white vase
fill(255);
quad(240, 220, 270, 220, 275, 270, 235, 270);
quad(235, 270, 275, 270, 270, 290, 240, 290);
quad(240, 290, 270, 290, 310, 340, 200, 340);
quad(200, 340, 310, 340, 290, 420, 220, 420);
//dark part of white vase
fill(220);
quad(255, 220, 270, 220, 275, 270, 255, 270);
quad(255, 270, 275, 270, 270, 290, 255, 290);
quad(255, 290, 270, 290, 310, 340, 255, 340);
quad(255, 340, 310, 340, 290, 420, 255, 420);
//shadow of vase
fill(129, 40, 40);
quad(350, 445, 500, 445, 500, 452, 350, 452);
//light part of vase
fill(255, 243, 128);
quad(360, 140, 380, 130, 375, 190, 360, 190);
quad(375, 190, 360, 190, 330, 231, 390, 221);
quad(330, 230, 390, 220, 370, 450, 350, 450);
//dark part of vase
fill(255, 204, 102);
quad(370, 135, 380, 130, 375, 190, 370, 190);
quad(370, 190, 375, 190, 390, 221, 370, 231);
quad(370, 230, 390, 220, 370, 450, 360, 450);
}
Nice work!
ReplyDelete