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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    2

Package Sidebar

Install

npm i screen-brightness

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • epilande