animatedgif2e131

0.0.4 • Public • Published

Animated Gif to E1.31

This module lets you control lights by sending video output in the form of an animated gif. It was designed primarily for a grid of led strips.

Features

  • Use your favourite video editing software to create a video, convert it to an animated gif and then output to sAcn (E1.31)
  • Supports common snaked cabling by default - supply a function to map in whatever way you like
  • Includes a comprehensive test suite

Usage

Command Line

Usage: animatedgif2e131 [options] <file>
 
 Options:
 
   -h, --help             output usage information
   -V, --version          output the version number
   -h, --host <value>     hostname or ip address
   -p, --port <n>         port
   -f, --fps <n>           frames per second
   -m, --mapping <value>  mapping function - snake, rows, gryCols
   -i, --interactive      interactive mode. Allows pausing and restarting of display from prompt
 

The tool can also be accessed through it's api. For Example:

var AnimatedGif2E131 = require("animatedgif2e131");
 
var fs = require("fs");
 
var options = {
  "port" : 5568,
  "host" : "127.0.0.1"
};
 
var buf = fs.readFileSync("myfile.gif");
 
var mappingFunction = AnimatedGif2E131.mapping.cols;
 
var theGif = new AnimatedGif2E131(buf, options, mappingFunction);
 
var fps = 25;
 
theGif.startAnimation(fps);

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.42latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.42
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i animatedgif2e131

Weekly Downloads

2

Version

0.0.4

License

ISC

Last publish

Collaborators

  • sudsy