UNPKG

wolkd

Version:

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

11 lines (10 loc) 191 B
module.exports = { title: 'Snake', getPixel: function(beat, t, i) { if (Math.abs((t % 100) - i) < 5) { return [255, 255, 255]; } else { return [0, 0, 0]; } } };