Assignment 2

For this assignment we had to use loops in some way as well as incorporate everything I’ve learned so far in class to make a simple work of art. I took inspiration from one of the old computer art magazines, shown below –

I found this assignment much harder than the previous one as it took me a while to understand the features of the loop function. It did get frustrating at one point as it was taking me forever to work out how it all works but I eventually got there. I’m glad I was able to create an interesting sketch inspired by “Random Squares”.

Here is my take on Random Squares:

I initially began with a loop of a single line of squares (the one with a gradient from black to white) which increased in size diagonally across the canvas – using the for() loop. I then added the gradient fill. Then I played around with the background to make it flash random colors at a normal speed (using frameRate)- before I used this the colors were flashing way too fast. I then added more loops and played around with the placement, sizing and colors of each line and ended up with a colorful canvas of random squares.

In the future I would want to have some movement of the squares – allow them to rotate or move off the screen, etc.

Assignment 1 – Self-Portrait

For this assignment, we had to create a self-portrait using P5js. I used simple drawing functions such as ‘circle’, ‘arc’, ‘rect’, ‘triangle’ in order to achieve my self-portrait. This was my first time coding so it was definitely an interesting experience.

I began by using a simple ellipse shape and then added all the different facial features (eyes, nose, glasses, nose pin and etc). Simultaneously I played around with different colours. I used a colour picker tool online to get the colours I wanted (lilac is my favorite colour hence I chose that for my background). The trickiest part was definitely the hair and bangs – positioning the accurate size of the bangs took me a while to figure out. It required a lot of trial and error, as did other features of the portrait. In addition, the shape of the ear with the PI constant was not easy to figure out. In the future, I would like to add a hijab/headscarf to my portrait.