5 ms·
While I love the ASCII art, yeah... thats not how the moon phase works. At half moon it should be exactly half occluded, so like it was cut in half, not just a
by SlowTao 1y ago
While I love the ASCII art, yeah... thats not how the moon phase works. At half moon it should be exactly half occluded, so like it was cut in half, not just a weird circle cut out.
This is something that partially bothered me about GTA San Andreas on Ps2. They used the same trick as here but I would give them a pass because it was just a small detail on a large simulation on an already very limited system.
There are some great bones here on the site, just need to tweak the shadow and it can be a 10 out of 10.
- kingstnap 1y agoYeah they seem to have drawn it as a dark circle going across for some reason. But earth's shadows aren't what create moon phases IRL. The real moon phases are from the sun lighting the moon from different angles so this is just super weird.
- andreareina 1y agoSome reason probably being that it's easier
- noduerme 1y agoyet an incredibly basic and stupid oversight when the only point of your site is to show the phase of the moon. I'm voting that this was vibe-coded by an LLM on behalf of someone who not only didn't write the code but didn't bother to look at a picture of the moon or look at the sky before deploying it. If so, it's almost the perfect Platonic example of "what could possibly go wrong?"
- bstsb 1y agoin this case the code is publicly available on github and it doesn't have any obvious hallmarks of LLM generation. (for example the comments are all capitalized, there's inconsistent indentation)
- kingstnap 1y agoThe math isn't that bad if anyone wants to do it properly. Assume y vertical and x horizontal and z out of the page. The moon is a disk. x^2 + y^2 <= R^2 For all the points, calculate z = sqrt(R^2 - y^2 - x^2) Let the vector v(theta) = <sin(theta), 0, cos(theta)> point to the Sun. Points <x,y,z> • v(theta) >= 0 should be bright, The rest dim.
- JdeBP 1y agoNow achieve that when your implementation constraint is that you're using JavaScript to style a <div/> element. (-: * https://github.com/Sean-93/asciimoon/blob/main/src/components/ASCIIMoon.astro#L35 https://github.com/Sean-93/asciimoon/blob/main/src/component...
- echelon 1y agoThat's a great suggestion for a more accurate render, but I want the author to know that I still think they did an amazing job. It's fun and it looks great. (Your feedback was really constructive, and I don't think the author will misinterpret it. Some of the other commenters here, on the other hand...) I have two additional feature requests: 1. Persistent URLs (replaceState) 2. Lunar eclipses
- SlowTao 1y agoAbsolutely they did a fantastic job, already a hundred times better than any web stuff I have ever done.
- panzi 1y agoYeah, was about to write the same comment.
- HumblyTossed 1y agoYeah instead of moving a dark circle over the moon, it needs to be hinged at the north and south and rotated.
- JdeBP 1y agoIt's amusing that it isn't truly a circle. It's a box with rounded corners and the corner rounding radius chosen to be half the box width. There is probably not a simple CSS trick like that for doing the correct 2D projection of a hemisphere.
- dclowd9901 1y agoAnother suggestion: API so I can curl and get this in my terminal.
- bravesoul2 1y agohttps://xkcd.com/1738/ https://xkcd.com/1738/
- deleted 1y ago[deleted]
- thih9 1y agoThis is also the standard way to present moon phases in watch complications: > One of the objections raised to a conventional moonphase display, which shows the visible part of the Moon via an aperture in the dial, is that it is not an accurate representation of what you see when you actually look at the Moon over the course of a month. https://www.hodinkee.com/articles/the-beautifully-pointless-lunacy-of-high-precision-moonphase-watches https://www.hodinkee.com/articles/the-beautifully-pointless-...
- crtasm 1y agoI enjoyed the next part with the solution >To address this problem, moonphase displays were invented which use a spherical miniature Moon
- Joker_vD 1y agoWell, let's hope nobody drills a hole in the Moon (or blows the Moon up) in the next couple thousands of years, for the sake of those watches' usability.
- thih9 1y agoIt’s actually safe to do that, watch owners would be distracted by global cataclysms ;) > Tides would be much smaller (…) But the movement of tides underpins the balance of ecosystems the world over, and an impact that widespread would cause global biological collapse across oceans and, in turn, the whole Earth. https://www.popularmechanics.com/space/moon-mars/a43633761/blowing-up-the-moon/ https://www.popularmechanics.com/space/moon-mars/a43633761/b...
- shagie 1y ago> let's hope nobody drills a hole in the Moon https://what-if.xkcd.com/46/ https://what-if.xkcd.com/46/ - while it deals more with the Earth (which has a more molten core), its still applicable. There's still molten material ( https://science.nasa.gov/moon/composition/ https://science.nasa.gov/moon/composition/ ) but it's a lot deeper. > (or blows the Moon up) As a classic Neal Stephenson (great world building, good plot... and it ends)... Seveneves starts with: > THE MOON BLEW UP WITHOUT WARNING AND FOR NO APPARENT reason. It was waxing, only one day short of full. The time was 05:03:12 UTC. Later it would be designated A+0.0.0, or simply Zero. ... and given the book and the "what happens"... a watch surviving (much less keeping the phase of the moon) would be impressive. There's also the Dr. Who take ("Spoilers") https://youtu.be/pHOnGSFzd3Y https://youtu.be/pHOnGSFzd3Y