Week 5

ICM
October 3rd, 2024

Creating a neonClock

So for the assignment this week, I felt like reorganizing an old project would be either too simple or maybe not as fun. I look forward to doing something new every week, so that's what I did. My first thought was to make a clock, then I pivoted to a timer. I used this documentation as inspiration, but once I got everything "working" (i.e. hours, minutes, and seconds counting down), I realized a I had a HUGE problem. I was using the setInterval function to initialize a timing function to count downwards. But then I was like... oh no. Each part is counting down, but not at all in relation to one another. And I had no idea how to fix that in a way that was efficient or even necessary, because I knew I could make a normal clock work. So I abandoned the timer concept, and just used the built in second, minute, and hour functions to make a regular clock. For a little add on, I used this example to have a background gradient that would change depending on if it were morning or nighttime.