Comment by nhinck3
3 days ago
Opened this up and sat there for a good 20 seconds waiting for something to happen... only to remember it's midnight here.
3 days ago
Opened this up and sat there for a good 20 seconds waiting for something to happen... only to remember it's midnight here.
Maybe someone smarter than me could add stars to the night sky, so it's not just black.
I was just thinking about how to slice up a star map projection, and apply it as an overlay. I don’t do such things often enough to do it quickly, although I can imagine how it could be achieved. I’d imagine someone working in game dev probably could whip up a mechanism for applying coordinates to a star map fairly quickly, but realizing it in pure CSS would probably require exporting all the slices to a folder as SVG squares that are labeled with coordinates, and then using a bit of JS to stitch it all together in the rendered page.
I wrote a simple web-based night sky viewer a while ago [1], which renders the 750 brightest stars from coordinates in a data file (along with the moon). It uses D3.js to do fully client-side SVG-based rendering for interactive use, but it could be simplified to render server side to an SVG file. I think the main complication is that by adding stars, a projection needs to be decided on, and you'd need to consider the aspect ratio of the browser window.
[1] https://github.com/mpetroff/nightsky
Suggestion for the author, I don't think there are any outdoor places where the sky is black. I don't know that gray would be any better. Stars? Some night clouds? or maybe even still a gradient?
https://www.google.com/search?sca_esv=58e7983bf9f21fcd&udm=2...