A simple python script that gives the color of the pixel at which the mouse is pointed. This script is intended to serve as an aid to people who are color-blind.
- Install Python
- Install pygtk
- Install python-xlib
- Install PyZenity
- Get the source code of prang and execute the script prang.py.
- It picks up the RGB values of the pixel at which the mouse pointer is present.
- Looks up the color from a look-up table and returns the color if, it is present in the look-up table.
- Else, calculates the nearest neighbor and returns the name of that color. [An asterisk indicates this approximation]
- This color name is then shown in a pop-up window.
Ideally, this script should be hooked to a short-cut key, so as to run it with ease.
- Pranesh
- Thanks for getting super excited on seeing a demo and for allowing us to name the app, based on his name.
- 9
- initial idea and feedback
- Chaitu
- Feedback, Ideas and Criticism.
- Rosetta Code
- Some code snippets.
- Cloford
- Color names look-up table.
- @baali and @punchagan – Put the pieces together.