Small library for color conversion, manipulation, etc.
Project description
repacolors
Small library for color conversion, manipulation, etc.
Install
$ pip install repacolors
repacolor
command
$ repacolor --help
Usage: repacolor [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
colorwheel Display colorwheel defined by `name` or created by the colors...
display Display information about the provided colors.
palette Get colors of given palette
pick Pick colors from your desktop.
scale Display color scale defined by the colors provided via stdin.
display
Display color information in the terminal.
$ repacolor display red
+--------+ red - #ff0000
| BIG | rgb(255, 0, 0)
| RED | hsl(0, 100%, 50%)
| SQUARE | lab(53.24% 80.09 67.2)
+--------+
$ repacolor display "#ffaad5" "rgb(128, 12, 46, .8)"
... (displays both colors)
$ echo "#ffffff" | repacolor display
... (displays `white`)
pick
Executes color picker (xcolor
) and displays the picked color.
$ repacolor pick
palette
Display the colors of the palette. If no palette name provided, it shows the palettes available.
$ repacolor palette
List of available palette names:
ryb, rybw3, orrd, pubu, ...
$ repacolor palette viridis
#440154
#482777
...
scale
Display a color scale defined by the input colors.
$ repacolor scale red white
[colors from red to white]
$ repacolor palette viridis | repacolor scale
[color scale defined by `viridis` colors]
colorwheel
Display a color wheel.
Pre defined color wheels:
ryb
- The RYB color wheelrgb
orhsl
- The RGB color wheellab
orlch
- CIELAB color wheel
If no color wheel name provided, it will create one from the colors provided on stdin
.
$ repacolor colorwheel rgb
[RGB color wheel]
$ repacolor scale red white black red | repacolor colorwheel
[red - white - black color wheel]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
repacolors-0.6.0.tar.gz
(27.9 kB
view hashes)
Built Distribution
repacolors-0.6.0-py3-none-any.whl
(31.1 kB
view hashes)
Close
Hashes for repacolors-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a49b777bdf945837bf6fa4a2a7bea099057b32ff50606189aa4885cded4f74ea |
|
MD5 | 8f7f8a226fcdf05c02fe52bc2577c4b8 |
|
BLAKE2b-256 | 4a1ce5199bde6a330f0fd62ae9cd403a753b0eadaa86580ca4d2f092d2263188 |