UNPKG

wolkd

Version:

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

13 lines (11 loc) 267 B
module.exports = { title: 'Flip-flop', getPixel: function(beat, t, i) { var a = (beat % 2) === 0; if (Math.round(i / 10) % 2 === 0) { return a ? [255, 255, 255] : [0, 0, 0]; } else { return !a ? [255, 255, 255] : [0, 0, 0]; } } };