Week 2 Couple at the park

For this work I decided on a stylized and abstract approach. Prior to the making of it I had some failed experiments in p5 that laid the groundwork for my final idea. Some of that included the use of Boolean variables, but I could not envision them with the concept I had in mind, so I just played around with them.

The idea I am trying to convey is a couple that spends their time together at the park, sitting on a bench and I executed it to look like a time lapse. When the cursor goes from left to right the background changes from night to day and the Moon to Sun.

To do this I used a for() loop for the bodies of the two people and put them in two columns, so they do not combine. I used randomness in a few instances, but kept it very controlled, because I wanted to convey the idea of constant movement throughout the hours that does not interfere with the rest of the background. I used two different ways to change the colors of the background and of the celestial body that ultimately lead to the same result: if(mouseX>width/2) and if (mouseX>200) (the canvas is 400, 400).

Here is how my first tries looked before that. I had asked Gemini to help me with the two bodies’ code, but at the end I simplified it in the final product and let myself experiment.

Additionally, at first I kept the noLoop() because the movement was distracting me while working, but since it was a part of the process I decided not to delete it and put it as a note using //.

A code I am particularly proud of is the one I used for the bench. Even though it is not complicated, I felt that it really put my artwork together.

//Bench
  quad(230,262, 350, 262, 380, 300, 190, 300);
 rect(230,200,120,15);
  rect(230,220,120,15);
  rect(230,240,120,15);
  rect (350,300,10,50);
  rect (210,300,10,50);

What I would change in the future is to make smoother transitions like more colors in-between or using blendMode() for a sunset-like background. In addition, I would love to incorporate Boolean variables somewhere appropriately.

How Was This Made:

Gemini was used for my first trial. Also, I watched this video to better grasp the essence of loops.

Leave a Reply