@laser-dac/easylase
    TypeScript icon, indicating that this package has built-in type declarations

    0.2.1 • Public • Published

    @laser-dac/easylase

    This package makes Laser DAC compatible with the Easylase USB II and NetLase by JMLaser.

    This package works on Windows only since JMLaser only provides drivers for Windows.

    yarn add @laser-dac/easylase
    npm i @laser-dac/easylase
    

    Usage

    import { DAC } from '@laser-dac/core';
    import { Easylase } from '@laser-dac/easylase';
    
    const dac = new DAC();
    dac.use(new Easylase());
    const started = await dac.start();
    if (started) {
      const pps = 30000; // points per second
      const fps = 120; // frames per second
      // draw a horizontal red line from left to right in the center
      // @laser-dac/draw can help you with drawing points!
      const scene = {
        points: [
          { x: 0.1, y: 0.5, r: 1, g: 0, b: 0 },
          { x: 0.9, y: 0.5, r: 1, g: 0, b: 0 },
        ],
      };
      dac.stream(scene, pps, fps);
    }

    See for more usage info and examples the Laser DAC project on GitHub.

    Install

    npm i @laser-dac/easylase

    DownloadsWeekly Downloads

    1

    Version

    0.2.1

    License

    MIT

    Unpacked Size

    630 kB

    Total Files

    11

    Last publish

    Collaborators

    • spacek33z
    • rutgerschimmel