Recitation 5

I chose this picture as it was Halloween and the picture was so cute.

Then, I began to draw the sketch and used processing to draw the picture.

And in the processing, I used some functions like: arc, ellipse, circle, fill and so on.

I draw a little ghost as the main character, and there also were some gift boxes as the background  in order to make the whole picture more beautiful.

Here is my code and my final work:

void setup() {
size(600, 600);
}
void draw() {
background(255);
fill(#FAAF17);
arc(0,160,80,80,0,TWO_PI,CHORD);
fill(#F5E105);
arc(160,560,300,300,0,TWO_PI,CHORD);
fill(#FA8D08);
rect(0,480,120,120);
fill(#7C14F5);
rect(400,0,200,200);
fill(#A46EE3);
rect(160,160,80,80);
fill(#F2CC40);
arc(240,0,160,160,PI,CHORD);

fill (#D4CBDB);

translate(320,480);
rotate(PI);
//arc(320,480,500,500,0,PI,CHORD);
arc(0,0, 500,500, 0, PI,CHORD);
fill(0);
circle(80,160,60);
circle(0,160,60);
fill(#F76BA1);
triangle(40,120,80,80,0,80);
}

I think the processing is a good way to achieve my design and thought, as it is really flexible to change both positions and shapes of different patterns. 

Leave a Reply

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