Show HN: The current sky at your approximate location, as a CSS gradient (sky.dlazaro.ca)
For HTML Day 2025 [1], I made a web service that displays the current sky at your approximate location as a CSS gradient. Colours are simulated on-demand using atmospheric absorption and scattering coefficients. Updates every minute, without the use of client-side JavaScript.
Source code and additional information is available on GitHub: https://github.com/dnlzro/horizon
68 comments
[ 2.4 ms ] story [ 47.8 ms ] threadOh, don't mind me, I'll just be over here in the corner laughing ruefully as my bones crumble to dust: back when I started, if you wanted a page to refresh on its own, this was the only way.
Beautiful work! A splendid example of formal minimalism at its best.
Well, the higher ups of course hated it, they were confused as to why the horizon would get hazy, yellowish, and so on. "Our competitors' skies are blue!" They didn't like "Use your eyes and look outside" as an answer.
Eventually, I was told to scrap it and just draw a blue rectangle :(
All that to say, nice job on the site!
1: https://courses.cs.duke.edu/cps124/fall01/resources/p91-pree...
That said there are niches where jobs let you do cool stuff all the time. Hard to find. Probably why gaming jobs are notoriously underpaid and overworked.
I wonder what it would take to account for weather?
what got me the most is opening chrome dev tools and seeing nothing there
https://www.google.com/search?sca_esv=58e7983bf9f21fcd&udm=2...
It looks very similar!
[1]: https://youtu.be/0mf8YaWN5qE?t=1m21s