Visualizing time

For this project I visualized time through a pair of eyes. Throughout the day, base on the hour the eyelids will open wider approaching noon and narrower away from noon. Likewise based on the hour and minute, the eye bags under the eyes will grow darker approaching midnight and lighter away from midnight. With the passing of minutes every hour, the pupils will move across the eye. On even hours it moves from left to right and on odd hours it moves from right to left. Every 3 seconds the eyes will blink.

Link: https://www.openprocessing.org/sketch/609503

The biggest difficulty I had in this project was finding a way to animate the blinking. I needed a way to store how much the eye would close for each frame within the function while keeping track of which way it was going. In the end I had to use a boolean variable in addition to the integer height variable to keep track if the eye was moving down for the blink or moving back up.