Skip to content
This repository has been archived by the owner on Mar 8, 2018. It is now read-only.
/ prang Public archive

A python script that shows the color name at the pixel where the mouse is present

Notifications You must be signed in to change notification settings

punchagan/prang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Description

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.

Installation

Windows

  1. Install Python
  2. Install pywin32
  3. Get the source code of prang and execute the script prang.py.

Unix/Linux

  1. Install Python
  2. Install pygtk
  3. Install python-xlib
  4. Install PyZenity
  5. Get the source code of prang and execute the script prang.py.

How it works

  1. It picks up the RGB values of the pixel at which the mouse pointer is present.
  2. Looks up the color from a look-up table and returns the color if, it is present in the look-up table.
  3. Else, calculates the nearest neighbor and returns the name of that color. [An asterisk indicates this approximation]
  4. 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.

Contributors

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.

About

A python script that shows the color name at the pixel where the mouse is present

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages