Skip to content

lfuelling/starfield-webgl

Repository files navigation

Starfield WebGL

This is a WebGL version of jQuery Starfield, written in TypeScript (and without jQuery).

If you are interested in the "regular version" (which also doesn't need jQuery), look at the initial commit: b25c3dbcc

Usage

  1. npm i -s starfield-webgl
  2. <script type="module">
     import {runStarfield} from "starfield-webgl";
     
     const options = {
        // see src/starfield.ts:6 for default
     };
    
     (() => {
         runStarfield(options);
     })();
    </script>

Development

Below are notes regarding development.

Requirements

  • Node >= v12
  • (Development only) Parcel (npm i -g parcel)

Usage

  1. Clone the repo
  2. Run npm i
  3. Build: npm run dev