var Holiday = require('holiday-udp'), holiday = new Holiday('192.168.23.254'); var frame = new Array; // fill frame with [r, g, b] values, each 0..value..255 holiday.send(frame);
If you just want to see see it work:
npm install -g holiday-udp holiday-xmas 192.168.23.254 &
Holiday.send takes two arguments:
frame, an array of 50 RGB values to send to the Holiday
callback, an optional callback function passed to
callback isn't supplied and an error occurs (e.g.
getaddrinfo ENOTFOUND), the
Holiday will emit
WARNING: On OS X, if a
setInterval timer calls
emitted to no subscribers should bring down Node if you've called
but it doesn't.
Once you've found your Holiday, try
bin/thrash.js. If it works and you're
into red, white, and green themed holidays at the end of the year, try
bin/xmas.js. The latter has a simple animation module hiding in it, waiting
to be broken out.