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
/
fill-red.js
12 lines
(10 loc)
•
220 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
var
Color
=
require
(
'color'
);
module
.
exports
= {
title
:
'Fill red'
,
type
:
'rgb'
,
getPixel
:
function
(
rgb, value
) {
var
color =
Color
().
rgb
(rgb); color.
red
(value *
255
);
return
color.
rgbArray
(); } };