A micro framework for controlling ILDA show lasers with JavaScript/TypeScript over WebSockets, with a focus on delivering a stream of points.
Based on @laser-dac
which is doing
much of the heavy lifting here.
npm i
npx ts-node src/server.ts
The server will print the URL of a laser simulator you can visit in your web
browser. If you have an Ether Dream
attached you can set the USE_ETHER_DREAM
environment variable to a truthy
value and it will use it in addition to providing you with a simulator.
npx ts-node src/sin.ts # Math.sin example
You can connect a p5js sketch to the Nanometer server. See the
included example in
examples/p5
.