Prototyping Class
August 26, 2021

Homework 1

Playing with Processing app

The result: A nice place to live...

The code of this masterpiece:

// declare canvas size
size(1000,600);

//set shape outline
strokeWeight(4);
noStroke();

// set background color
background(#FFFFFF); 

// set the grass
fill(#1CC428);
rect(0,400,1000,200);

// set house walls
fill(#EABE90);
rect(300,200,400,300);

// set the chimney
fill(#D63B02);
rect(620,100,40,80);

// set the roof
fill(#4D2A07);
triangle(500, 60, 250, 200, 750, 200);

// set the window
fill(#F5F1F0);
stroke(#836054);
strokeWeight(16);
rect(380,260,100,160);

// set the door
fill(#F5F1F0);
stroke(#836054);
rect(520,260,100,230);

// set the tree
fill(#4D2A07);
noStroke();
triangle(860, 260, 840, 500, 880, 500);
fill(#1CC428);
ellipse(860, 260, 100, 120);

// set the sun
fill(#FAE30D);
ambientLight(128, 128, 128);
ellipse(60, 60, 60, 60);

Please, comment on my work)