Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Astra

Animated starfield demos in the browser. No build step — open the HTML files directly.

Pages

index.html — Astra: Three Ways Through the Stars

A full-screen 3D starfield built with three.js (loaded from CDN). Three modes:

  1. 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.
  2. Observation deck — stars drift past the window at different depths and speeds.
  3. 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.

stars.html — HTML5 Canvas + OO JavaScript Demo

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.

Running

Open either file in a browser. index.html loads three.js from a CDN, so it needs an internet connection.

License

See LICENSE.

About

A demonstration of horizontal and angular star fields using ES6, the HTML5 canvas object, and trigonometry.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages