UNPKG

wolkd

Version:

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

10 lines (8 loc) 225 B
var Color = require('color'); module.exports = { title: 'Rainbow 2', getPixel: function(beat, t, i, x, y) { var color = Color().rgb(255, 0, 0).hue(Math.round(t + y * 180) % 360); return color.rgbArray(); } };