xcolor 🌈

Build Status Latest Version Rust Documentation License: MIT

Lightweight color picker for X11. Use mouse cursor to select colors visible anywhere on the screen to view their RGB representation.

Installation

Currently, the easiest way to install xcolor is to use cargo:

shell $ cargo install xcolor

Usage

Simply invoke the xcolor command to select a color. The selected color will be printed to the standard output. By default, color values will be printed in lowercase hexadecimal format. The output format can be changed using the -f FORMAT switch. The possible format values are listed bellow:

| Format Specifier | Description | Example | | ---------------- | --------------------------------- | ------------------- | | hex | Lowercase hexadecimal (default) | #ff00ff | | HEX | Uppercase hexadecimal | #00FF00 | | rgb | Decimal RGB | rgb(255, 255, 255) | | plain | Decimal with semicolon separators | 0;0;0 |