A simple single page app that prints out every second of a given hour as a colour swatch. Hover over each cell to see what time of the day the colour represented.
In html pages, you can choose to colour an element using the hexidecimal colour system.
Example 1:
#000000
represents blackI am a div with background colour #000000;
Example 2:
#ff0000
represents redI am a div with background colour #ff0000;
That means that any time of the 24-hour day from 00:00:00
to 23:59:59
can be represented as a colour:
Example 3:
#113949
represents 11:39:49amI am a div with background colour #113949, which was derived from `11:39:49am`;
Well it takes the current hour, performas a loop over all 3600 seconds and renders a colour cell for each of those seconds. Neat!
- rebuild in React maybe
- add a counter interval to update the highlighted cell every time a second ticks.