//Vincent Castillo  9/15
//Class 4: hw presentation

float sunX;
float sunY;

void setup() {
  
  size( 1000, 750 );
  
}
////Background, Moving Sun, House////
void draw() {   
  background( 50, 50, 255 );
  noStroke();  
  
  sunX = sunX + 3;
  sunY = 200 - 100 * sin(PI * sunX/width);
  if( sunX > width * 2) {
  sunX = -35;
  }
  
  ////Sun////
  fill( 255, 162, 30 );
  ellipse( sunX, sunY, 150, 150 );
    
  grass();
  house();
}
////House with brown roof////
void house() {

  //Red base//
  fill( 255, 30, 30);
  rect( 100, 500, 100, 100);
 
  //Brown roof//  
  fill( 127, 0, 0);
  triangle( 150, 460,  60, 500,  240, 500);
  
  //D.Red Door//
  fill( 120, 30, 30);
  rect( 130, 540, 30, 60);

}
////Grass////    +++ add statues +++
void grass() {

  fill( 0, 255, 50 );
  rect( 0, 300, 1000, height);
}