Add day mode driven by the real sun

The Sun's true altitude (Astronomy Engine, on the timelapse clock)
raises the desktop sun from the horizon up to ~78% of the screen at
culmination and back down at sunset; at night it rests on the horizon
as before. Above -3° the body gains a 'dia' class: light blue sky with
a pink horizon band (#daySky), bright warm sun disc without retro
stripes, golden horizon line, stars/nebulae/meteors washed out, and the
dancing skeleton swaps for a wooden coffin with a golden cross. Balada
and chuva keep priority via :not() selectors.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015HtPHsTnDcLVSCiF5FGHZj
This commit is contained in:
vini 2026-07-19 21:22:02 -03:00
parent 444d46a4db
commit a80b22bdcc
2 changed files with 157 additions and 1 deletions

View file

@ -59,6 +59,7 @@ Pure HTML/CSS/JS, no external dependencies. All visuals are self-contained:
| Milky Way | Per-pixel sampling of `milkyway.jpg` (Gaia photo, full res): `buildMwGrid` caches viewport unit vectors + extinction/glare, `renderMilkyWay` applies only the sidereal rotation (camera azimuth folded into the equatorial→galactic matrix) and stylized "development" (deep blacks, saturation, cool shadows). Decoded texture stays resident (~75 MB) |
| Moon & planets | Astronomy Engine topocentric ephemerides: Moon with real phase texture + bright-limb angle, 7 planets with magnitude-scaled dots (labels only in constellation mode) |
| Zodiac constellations | Stellarium Modern lines (traces only, no artwork); toggled via `/tmp` file or `C` key |
| Day mode | Real sun altitude (Astronomy Engine, follows the timelapse clock) drives `--sun-bottom` (horizon → ~78% at culmination) and a `dia` body class: light blue/pink `#daySky`, bright sun disc, golden horizon, stars/nebulae fade out, dancer replaced by a CSS coffin. Balada/chuva override day visuals via `:not()` selectors |
| Nebula blobs, grid floor, horizon | CSS animations |
| DANCEBOT-9000 robot | Pure CSS (divs + `@keyframes`) |
| Chest EQ bars & VU meter | JS-driven `requestAnimationFrame` |