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
/
rainbow-move.js
10 lines
(8 loc)
•
225 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
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
(); } };