Skip to main content

Get the screen pixel color

Project description

PixelColor

Travis CI Build Status CircleCI Build Status PyPI - Version PyPI - Python Version

Description: Get the screen pixel color

Copyright: 2022 Fabio Castelli (Muflone) muflone@muflone.com

License: GPL-3+

Source code: https://github.com/muflone/pixelcolor

Documentation: http://www.muflone.com/pixelcolor/

Description

PixelColor is a command line tool to get the color of a pixel from the screen.

You can simply pass the pixel coordinates (X and Y) and the pixel color will be printed as result.

System Requirements

Usage

PixelColor is a command line utility and it requires some arguments to be passed:

pixelcolor --x <X> --y <Y> [--display <DISPLAY>] [--triplets] [--hex] [--upper]

The arguments --x and --y refer to the pixel coordinates as left and top positions (the first pixel is always 1x1).

The argument --display is the graphical display to use (the DISPLAY variable).

The argument --triplets will return the pixel color value as a triplets of colors (red, green, blue).

The argument --hex will show the colors as hexadecimal values.

The argument --upper will return the hexadecimal digits as upper case.

An example to execute PixelColor will be the following:

pixelcolor --x 100 --y 200 --hex

This will print the pixel color at coordinates 100x200.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PixelColor-0.2.0.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

PixelColor-0.2.0-py3-none-any.whl (7.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page