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
npm i -s starfield-webgl
-
<script type="module"> import {runStarfield} from "starfield-webgl"; const options = { // see src/starfield.ts:6 for default }; (() => { runStarfield(options); })(); </script>
Below are notes regarding development.
- Node >= v12
- (Development only) Parcel (
npm i -g parcel
)
- Clone the repo
- Run
npm i
- Build:
npm run dev