A command-line tool to generate, analyze, convert and manipulate colors
https://github.com/sharkdp/pastel.git
pastel is a command-line tool to generate, analyze, convert and manipulate colors. It supports many different color formats and color spaces like RGB (sRGB), HSL, CIELAB, CIELCh as well as ANSI 8-bit and 24-bit representations.
pastel provides a number of commands like saturate, mix or paint. To see a complete list, you can simply run
`` bash
pastel
%%CODEBLOCK0%% bash
pastel random | pastel mix red | pastel lighten 0.2 | pastel format hex
%%CODEBLOCK1%%
lightslategray
'#778899'
778899
789
'rgb(119, 136, 153)'
'119,136,153'
'hsl(210, 14.3%, 53.3%)'
%%CODEBLOCK2%%
pastel lighten 0.2 orchid orange lawngreen
%%CODEBLOCK3%%
printf "%s\n" orchid orange lawngreen | pastel lighten 0.2
%%CODEBLOCK4%%
pastel color red | pastel mix - blue
%%CODEBLOCK5%% bash
pastel format hsl ff8000
%%CODEBLOCK6%% bash
pastel color "rgb(255,50,127)"
pastel color 556270 4ecdc4 c7f484 ff6b6b c44d58
%%CODEBLOCK7%% bash
pastel pick
%%CODEBLOCK8%%
pastel distinct 8
%%CODEBLOCK9%% bash
pastel list
%%CODEBLOCK10%% bash
pastel format name 44cc11
%%CODEBLOCK11%% bash
bg="hotpink"
fg="$(pastel textcolor "$bg")"
pastel paint "$fg" --on "$bg" "well readable text"
%%CODEBLOCK12%% bash
pastel paint -n black --on red --bold " ERROR! "
echo " A serious error"
pastel paint -n black --on yellow --bold " WARNING! "
echo " A warning message"
pastel paint -n black --on limegreen --bold " INFO "
echo -n " Informational message with a "
echo -n "highlighted" | pastel paint -n default --underline
echo " word"
%%CODEBLOCK13%% bash
wget "https://github.com/sharkdp/pastel/releases/download/v0.11.0/pastel_0.11.0_amd64.deb"
sudo dpkg -i pastel_0.11.0_amd64.deb
%%CODEBLOCK14%%bash
sudo apt update
sudo apt install pastel
%%CODEBLOCK15%%
sudo pacman -S pastel
%%CODEBLOCK16%%
nix-env --install pastel
%%CODEBLOCK17%%
brew install pastel
%%CODEBLOCK18%%
scoop install pastel
%%CODEBLOCK19%%bash
winget install sharkdp.pastel
%%CODEBLOCK20%%
sudo snap install pastel
%%CODEBLOCK21%%
pkgin install pastel
%%CODEBLOCK22%%
cd /usr/pkgsrc/graphics/pastel
make install
%%CODEBLOCK23%%
cargo install pastel
%%CODEBLOCK24%%
git clone https://github.com/sharkdp/pastel
cargo install --path ./pastel
``
Interesting Wikipedia pages:
Licensed under either of