Animated starfield demos in the browser. No build step — open the HTML files directly.
A full-screen 3D starfield built with three.js (loaded from CDN). Three modes:
- Spiral galaxy — a fly-through of a procedurally generated galaxy with spiral arms, a central bar and bulge, dust lanes, star clusters, and a halo.
- Observation deck — stars drift past the window at different depths and speeds.
- Light speed — a warp effect where stars stretch into streaks.
Controls: click the mode buttons, or press keys 1–3 to switch modes and Space to pause. Respects reduced-motion settings and includes screen-reader status updates.
The original, older demo: a 2D starfield drawn pixel-by-pixel on an HTML5 canvas using ES6 classes. Toggle between a horizontal scrolling field and a spiral (angular) field, and start/stop the animation with buttons.
Open either file in a browser. index.html loads three.js from a CDN, so it needs an internet connection.
See LICENSE.