Recitation 5: Processing Basics

This is the image that I chose to sketch.

This is a picture I took back in my hometown when I was going out for a walk with my parents. It was quite near to the very end of the summer vacation, because of which I cherished the time a lot with my parents on the old roads of my hometown. The scene was beautiful, which would strongly remind me of where I came from whenever I see this photo. It kind of stands for my feelings of missing. Also the whole scene is very simple, all the objects in which could be simply depicted with simple geometrical figures.

At first, I tried to draw some eclipse to depict the line made by the shadow of the trees.  However, it was too difficult for a beginner, so I changed my methodology. I drew the long curve out of several small straight lines. The building is also made of three straight lines, which forms into a trapezoidal. The moon above consists of a line and an eclipse.

My paper drawing helped me a lot with the sketching. It helped me roughly locate all the points that I needed to implement into the sketch.

 

The sketch resembles to the image geometrically, which means that it could show the basic geometrical features of this image. But in terms of color and shadow, the sketch I made still lacks a sense of reality.

I think using processing is indeed a good way to realize my design, for it enriches the variety in of my design, providing more visual presentations.

This is the code.

float x = 330;

void setup() {
  size(750,1000);
  background(255);
}
void draw() {
  // Your drawing code goes here
  strokeWeight(14);
  background(255);
  line(0,400,100,300);
  line(100,300,150,400);
  line(150,400,225,490);
  line(225,490,380,580);
  line(380,580,640,650); 
  line(640,650,750,660);
  line(370,400,370,570);
  line(370,400,620,420);
  line(620,420,620,640);
  arc(x,220,45,45,30,HALF_PI+40);
  x++;
  if(x > 772.5){
    x = -22.5;
  }
}

This is the final sketch I made. The circle above could move horizontally, and return to the left edge of the sketch when it has gone out of the frame.

Leave a Reply

Your email address will not be published. Required fields are marked *