Homework due Oct 16 (Mon)

Assignment 11: Self Portrait and 5 Rectangles

Self Portrait

I drew a self-portrait using Processing. I first tried to draw a self-portrait with simple lines and shapes, but since that resulted in a more character-like figure rather than a self portrait, I found some codes online which I used it as my base. By adding circles, triangles, and lines onto the base code, I was able to integrate the skills that we learnt in class. Since I like going to the beach, I decided to have the beach scenery as the background. I had first intended to fill in the figure, but the code did not fully fill in the self-portrait but instead left some parts transparent. Therefore, I decided to leave the transparency of the figure of the self-portrait just for the aesthetics.  

Code:

Product:

 

5 Rectangles

Another homework for today was to draw 5 rectangles using a loop. I read through the processing loop reference page and typed in some extra codes to adjust the rectangles and add color. Very similar to Arduino, it created multiple rectangles by adding the detail codes inside the one for loop.  

Code:

Product:

Leave a Reply

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