npm.io
0.0.1 • Published 9 years ago

screen-brightness

Licence
MIT
Version
0.0.1
Deps
2
Vulns
0
Weekly
0

screen-brightness

Analyze screen contents to get brightness

Installation

$ npm install --save screen-brightness

Usage

const screenBrightness = require('screen-brightness');

screenBrightness();   //=> 52.48828125

screenBrightness 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.