pixcolor

1.0.0 • Public • Published

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
const color = pixcolor([100, 200], true);
 
// async usage
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.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i pixcolor

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.37 kB

    Total Files

    5

    Last publish

    Collaborators

    • seiyria