UNPKG

wolkd

Version:

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

13 lines (11 loc) 267 B
module.exports = { title: 'Front! Back!', getPixel: function(beat, t, i, x, y) { var front = (beat % 2) === 0; if (y <= 0.5) { return front ? [0, 0, 0] : [255, 255, 255]; } else { return front ? [255, 255, 255] : [0, 0, 0]; } } };