A colorful parrot; Now also a commandline colorpicker written in Rust.
On macOS and Linux you can use Homebrew to install:
brew tap kolja/loriini
brew install loriini
Or download the binary and place it in /usr/local/bin
manually:
tar -xf loriini-x86_64-unknown-linux-musl.tar.gz -C /usr/local/bin
Options | default | |
---|---|---|
-s | size — The height (in lines) which the color picker will occupy | 12 |
-x | x-factor — by which the colorwheel is distorted: If your font has perfectly square characters, this should be 1 |
0.5 |
-r | outer radius — the radius of the color wheel It should be half the size to cover all the available area. |
6 |
-i, --inner‑radius | inner radius — the difference between outer radius and inner radius define the width of the color wheel. Zero will give you a solid circle | radius * 0.7 |
-c | Initial color, when started (as a hex string) | #FF0000 |
-p, --pipe | if set (e.g. to /tmp/loriini), output the selected color to named pipe with every interaction | |
-h, --help | print help | |
-v, --version | print version |
Once you have started it, you can use vim-style keybindings to change your color:
Key | |
---|---|
i | to toggle info At startup loriini will only show a colorwheel. To show/hide sliders for lightness and saturation a color-preview with hex-string press "i" |
j / k | cycle edit mode Select a different edit mode (hue, lightness, saturation with "j" and "k" |
h / l | change color Change hue, lightness and saturation of your color with "h" and "l" keys |
y | "yank" "yank" (copy) the selected color to the clipboard |
q | quit |
There is a neovim integration for Loriini at kolja/loriini.nvim