VariableFace

static face
sketch
variable face

code: Variable Face Project

For this project, I coded a portrait of my friend Gray. I decided to use geometric shapes and shading to create an image as close to my sketch as possible.

I encountered a lot of problems while coding my figure’s clothing. In the sketch, my friend is wearing a plaid jacket. This pattern was very hard to code, so I decided to change it into a line pattern that somewhat mimic the plaid he’s wearing. To do so I used nested for loops that help me draw a line segment repeatedly within a boundary. Making variations of the static face wasn’t really hard for me. When I first coded my face, I already used a lot of variables so that I can reposition shapes easily. Therefore, to make my variable faces, I simply put my variables in the mousePressed function so they change every time I click the screen.