Skip to content

sharph/nanometer

Repository files navigation

nanometer 🔴🟢🔵

nanometer gif animation preview

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.

Setup

npm i

Example

Run the server

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.

Connect a client

npx ts-node src/sin.ts  # Math.sin example

nanometer running in p5js screenshot

You can connect a p5js sketch to the Nanometer server. See the included example in examples/p5.

About

A micro framework for controlling ILDA show lasers with JavaScript/TypeScript over WebSockets, with a focus on delivering a stream of points.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published