Skip to content

Calculate average pixel colour for ambilight effect

Notifications You must be signed in to change notification settings

pablodenadai/ambilux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ambilux

Calculate average pixel colour for ambilight effect.

Usage

var ambilux = require('ambilux');

var interval = ambilux.run({
  refreshInterval: 150
}, (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
}

About

Calculate average pixel colour for ambilight effect

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published