starfield-webgl
v1.5.3
Published
WebGl version of starfield.
Readme
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
- npm i -s starfield-webgl
<script type="module"> import {runStarfield} from "starfield-webgl"; // default options const options = { starDensity: 1.0, mouseScale: 1.0, seedMovement: true, fpsLimit: 30, // set to <= 0 to disable antialiasing: true, // onBeforeDraw?: () => void; // onAfterDraw?: () => void; }; (() => { runStarfield(options); })(); </script>
Development
Below are notes regarding development.
Requirements
- Node >= v12
- (Development only) Parcel (
npm i -g parcel)
Usage
- Clone the repo
- Run
npm i - Build:
npm run dev
