Skip to content

Commit d5653b1

Browse files
mf4633claude
andcommitted
Initial commit: 3D solar eclipse predictor
Single-file Three.js visualization of every solar eclipse 2001-2030. NASA Five Millennium Canon catalog drives prev/next stepper; central path computed live via Meeus + truncated ELP-2000. 17 cartoon 3D landmarks at famous sites with hover tooltips. Year-jump input. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 parents  commit d5653b1

4 files changed

Lines changed: 1787 additions & 0 deletions

File tree

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.DS_Store
2+
Thumbs.db
3+
*.log
4+
.vscode/
5+
.idea/
6+
node_modules/

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 Michael Flynn
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Eclipse Predictor
2+
3+
Single-file 3D solar eclipse visualizer. Step through every solar eclipse from 2001 to 2030 (43 events from NASA's Five Millennium Canon) and watch the path of totality sweep across a Three.js Earth.
4+
5+
**Live demo**: open `index.html` in any modern browser, or visit the deployed copy at <https://boardgaminghub.com/EclipsePredictor.html>.
6+
7+
![screenshot placeholder](https://via.placeholder.com/800x400?text=Eclipse+Predictor)
8+
9+
## What it does
10+
11+
- **Catalog as source of truth** — 43 NASA-confirmed solar eclipses (date + type + location) drive the prev/next stepper
12+
- **Live path computation** — Sun position from Meeus *Astronomical Algorithms* ch. 25, Moon position from a 30-term truncated ELP-2000 model, Besselian elements derived from sub-solar/sub-lunar geometry, central path traced where the shadow axis pierces Earth's surface
13+
- **3D landmarks** — 17 cartoon-styled monuments (Eiffel Tower, Pyramids, Sphinx, Sydney Opera House, Statue of Liberty, Big Ben, Taj Mahal, Mt. Fuji, Christ the Redeemer, Stonehenge, Easter Island Moai, Colosseum, Burj Khalifa, Petra, Chichen Itza, Angkor Wat, Mt. Kilimanjaro) at correct lat/lon with hover tooltips
14+
- **Year jump** — type a year to jump to the nearest cataloged eclipse
15+
- **Day/night terminator** — Earth's lit and shaded sides at the eclipse instant
16+
- **Penumbra outline** — rough partial-eclipse extent at greatest eclipse
17+
18+
## Controls
19+
20+
| | |
21+
|---|---|
22+
| `` / `` | Previous / next eclipse |
23+
| `JUMP TO` field | Type year + Enter to jump |
24+
| `PLAY` | Auto-advance every ~2 seconds |
25+
| Drag | Rotate globe |
26+
| Scroll | Zoom |
27+
| Hover landmark | Show name |
28+
| `?` | Help modal |
29+
30+
## Accuracy
31+
32+
Catalog dates and types match NASA's [Five Millennium Canon of Solar Eclipses](https://eclipse.gsfc.nasa.gov). Computed paths are accurate to roughly **±100 km** — fine for visualization, **not** for chasing totality. For mission-critical predictions go to <https://eclipse.gsfc.nasa.gov>.
33+
34+
## Stack
35+
36+
- Single HTML file, no build step
37+
- [Three.js r128](https://threejs.org) (CDN)
38+
- [world-atlas](https://github.com/topojson/world-atlas) coastlines (CDN, ~80 KB TopoJSON, decoded inline)
39+
40+
## License
41+
42+
MIT — see [LICENSE](LICENSE).

0 commit comments

Comments
 (0)