screen-brightness
v0.0.1
Published
Analyze screen contents to get brightness
Readme
screen-brightness
Analyze screen contents to get brightness
Installation
$ npm install --save screen-brightnessUsage
const screenBrightness = require('screen-brightness');
screenBrightness(); //=> 52.48828125screenBrightness returns a number between 0 - 255, depending on how bright the content on your
screen is.
API
screenBrightness([options])
options
Type: Object
columns
Type: number
Default: 8
Columns throughout the screen where points will be plotted.
points
Type: number
Default: 32
Total points to take color samples from.
