1.0.6 • Published 1 year ago

@refractionx/rfx-art-net-js v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Checkout Example app

Install

npm i --save @refractionx/rfx-art-net-js

Import

import rfxArtNetLoader from '@refractionx/rfx-art-net-js';

Load

// a compiled WASM module is shipped in build directory of this package
const rfxArtNet = await rfxArtNetLoader(fetch('rfxArtNet.wasm'));
...

Use

let channelsIn;
let channelsOut = new Uint8Array(Array(512).fill(0));
...

// read channels from an Art-Net packet in a WebSocket frame 
channelsIn = rfxArtNet.getChannels(wsMessage.data);

...

// write channels to an Art-Net packet, universe 1, send in a WebSocket frame
ws.send(rfxArtNet.getPacket(channelsOut, 1));
1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago