Categories
4. The Clock

The Clock – Mohamed Alhosani

For this project, my main objective was to create a ‘community’ of people/faces all around the screen. The faces would be showing different expressions depending on the time. Overall I was happy with the outcome I got, however, I wanted to implement a few more things that I was unable to figure out. Firstly, I wanted the eyes to blink and when I implemented that they were blinking way too fast to the point that it was somewhat unnoticeable and looked like a glitch. One solution I found was to reduce the frame rate, however, that would not work since it would also affect the movement of the faces around the screen, and it would be way slower and less smooth. Another thing I wanted to implement was making the faces talk during the day, however, I faced the same issue I mentioned earlier. I also wanted to make the background look like a proper gradient, but after some testing, I found that it would be weird. Different face expressions have different colors which can reflect their moods. When the time() is zero, all the faces are in deep sleep. From 0 to 6, more ghosts show up (the number is directly proportional to the time) and a few faces wake up, and towards the end, the sun starts shining. The ghosts represent the late nights that keep those people up. From 6 to 12, the background slowly changes to a nice sky blue and more faces start to wake up. All ghosts disappear during the day. From 12 to 18, the background slowly starts to change to sunset and most faces are awake even though there are a few that are oversleeping or napping. From 18 to 22, the sun finally sets and the sky becomes dark (navy) and some faces start sleeping. From 22 to 23, a few more faces go to sleep and the sun sets more, the sky gets a bit darker. Finally, from 23 to 24, most faces are asleep (whether it’s deep sleep or not which can be seen based on their color) and the sky becomes even darker. The cycle will then repeat again with 0, showing every face in a deep sleep and the start of a new day. I enjoyed working on this and it was interesting to see how my thought process was being tested the more I worked on this code. I look forward to working on the next assignments. My initial sketch and first thought process can be seen below. 

Some Outputs:

Live Output:

The link to my code! ☺