Skip to content
This repository was archived by the owner on May 11, 2021. It is now read-only.

seiyria/pixcolor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pixcolor

A small nodejs utility to get the color of a pixel on the desktop screen.

Usage

npm i pixcolor

import pixcolor from pixcolor;

// synchronous usage - this gets the pixel at coordinate 100, 200
const color = pixcolor([100, 200], true);

// async usage - this gets the pixel at coordinate 100, 200
pixcolor([100, 200], (err, color) => {

});

The return value will be in the format RRGGBB like a hex color, but it doesn't have an octothorpe prepended.

Restrictions

This uses edge-js, so it only runs on windows, and from a node environment - it will not work in the browser.

About

A small nodejs utility to get the color of a pixel on the desktop screen.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors