ambilux

0.0.1 • Public • Published

Ambilux

Calculate average pixel colour for ambilight effect.

Usage

var ambilux = require('ambilux');
 
var interval = ambilux.run({
  refreshInterval: 150
}, cb);
 
function cb (colours) {
  console.log(colours);
}
 
setTimeout(() => {
  clearInterval(interval);
}, 2000);

Options

{
    screenHeight: screenSize.height,
    screenWidth: screenSize.width,
    ledsHorizontal: 10,
    ledsVertical: 7,
    pixelGap: 25,
    screenOffset: 0.1,
    refreshInterval: 100
}

Package Sidebar

Install

npm i ambilux

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • npmpabs