#convert-hex #rgb #hex-color #cli #color-code #rgb-hex

bin+lib hex-rgb

A Rust CLI Program to convert hexadecimal color-code to RGB

2 releases

0.1.1 Dec 2, 2020
0.1.0 Dec 2, 2020

#11 in #convert-hex

Download history 3/week @ 2024-02-16 17/week @ 2024-02-23 13/week @ 2024-03-01 15/week @ 2024-03-08 12/week @ 2024-03-15 8/week @ 2024-03-22 34/week @ 2024-03-29 14/week @ 2024-04-05

57 downloads per month
Used in 2 crates

MIT license

9KB
194 lines



type-fest

A Rust CLI Program to convert hexadecimal color-code to RGB


type-fest

Install

$ cargo install hex-rgb

Usage

$ hex-rgb --help
hex-rgb 0.1.0
Converts hexadecimal color code to RGB

USAGE:
    hex-rgb [FLAGS] <hex-code>

FLAGS:
    -c, --copy       Copy RGB Color to system clipboard
    -d, --debug      Activate debug mode (-d, --debug)
    -h, --help       Prints help information
    -V, --version    Prints version information

ARGS:
    <hex-code>    A valid hexadecimal color code (Eg. "#fafafa" (or) "#fff")

Prerequisites

Linux

The following packages are required to use hex-rgb on linux:

  • libxcb1-dev
  • libxcb-render0-dev
  • libxcb-shape0-dev
  • libxcb-xfixes0-dev

On Ubuntu you can install it using:

sudo apt install libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev

For other distributions of linux, the same packages can be obtained from the corresponding repositories.

Dependencies

~3MB
~53K SLoC