UNPKG

wolkd

Version:

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

12 lines (10 loc) 222 B
var Color = require('color'); module.exports = { title: 'Fill blue', type: 'rgb', getPixel: function(rgb, value) { var color = Color().rgb(rgb); color.blue(value * 255); return color.rgbArray(); } };