0.0.1 • Published 7 years ago

screen-brightness v0.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

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.