UNPKG

wolkd

Version:

Server and user interface to control WS2801 RGB LED strips via SPI

10 lines (9 loc) 169 B
module.exports = { title: 'Invert', type: 'rgb', getPixel: function(rgb, value) { return rgb.map(function(c) { return (255 * value) - c; }); } };