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
/
modifiers
/
invert.js
10 lines
(9 loc)
•
169 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
module
.exports = { title:
'Invert'
,
type
:
'rgb'
, getPixel:
function
(rgb, value)
{
return
rgb.map(
function
(c)
{
return
(
255
* value) - c; }); } };