Get the screen pixel color
Project description
PixelColor
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
- Python 3.x
- Pillow 9.3.0 (https://pypi.org/project/Pillow/)
Usage
PixelColor is a command line utility and it requires some arguments to be passed:
pixelcolor --x <X> --y <Y> [--display <DISPLAY>] [--triplets] [--hex]
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
varirable).
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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for PixelColor-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e6be0327ff620be5602e77f439729c8f097e0c816d51fcb4f272d2ccf93a8ee |
|
MD5 | dd379777d9f73f71acaa5b8d416c7fd0 |
|
BLAKE2b-256 | 54a848b3be0c7b020b44736bf7807c3e1134c01f7b3ef138bbf028b3df2f785e |