colorpicker
Select colors from the screen
TLDR
Launch colorpicker and print the hexadecimal and RGB value of each clicked pixel to stdout
Only print the color of one clicked pixel and then exit
Print the color of each clicked pixel and quit when a key is pressed
Only print the RGB value
Only print the hexadecimal value
SYNOPSIS
colorpicker [options]
PARAMETERS
-h, --help
Display help message and exit.
-v, --version
Display version information and exit.
-f, --format
Specify the output format for the color (e.g., hex, rgb). Supported formats may vary depending on the specific implementation.
DESCRIPTION
colorpicker is a command-line utility for X11 environments that allows users to select a color from the screen. It captures the pixel color under the cursor and outputs the color value in various formats (hex, RGB, etc.). This is useful for developers and designers needing to quickly identify and reuse colors found in applications or images. It's a lightweight alternative to opening a full-fledged image editor or dedicated color picking software.
The utility typically utilizes libraries like Xlib to interact with the X server. It simplifies the process of obtaining color information by providing a direct and efficient method to retrieve color values from the desktop environment. The tool is generally scriptable, allowing it to be integrated into automated workflows or custom tools.
IMPLEMENTATION DETAILS
The exact implementation details of colorpicker, and available options, can vary based on the specific distribution or version of the utility. It is essential to consult the help output (colorpicker --help) or the manual page (if available) for accurate information.
SEE ALSO
xcolor(1), gcolor2(1)