UNPKG
wolkd
Version:
latest (0.5.2)
0.5.2
0.5.1
0.5.0
Server and user interface to control WS2801 RGB LED strips via SPI
wolk.bike
bertspaan/wolkd
wolkd
/
patterns
/
functions
/
strobe.js
8 lines
(7 loc)
•
150 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
module
.
exports
= {
title
:
'Strobe'
,
getPixel
:
function
(
beat, t
) {
var
on = (t %
2
) ===
0
;
return
on ? [
255
,
255
,
255
] : [
0
,
0
,
0
]; } };