screen-brightness

0.0.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i screen-brightness

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • epilande