17 stable releases
1.14.1 | Nov 28, 2024 |
---|---|
1.14.0 | Nov 21, 2024 |
1.10.0 | Oct 27, 2024 |
1.6.0 | Sep 30, 2024 |
#56 in Visualization
666 downloads per month
620KB
2K
SLoC
Oklch Color Picker
Try the web demo: https://oklch.eerolehtinen.fi/
Features
- Takes an input color as a cli argument and ouputs the edited color to stdout
- Uses a perceptual colorspace (Oklch) to allow intuitive editing
- Consists of lightness, chroma and hue
- Motivation: An article by the Oklab creator
- Oklch uses the same theory as Oklab, but uses parameters that are easier to understand
- Lr estimate is used instead of L as specified in another article by the same guy
- Supports many color formats for input and output (editing uses only Oklch):
- Hex (
#RGB
,#RGBA
,#RRGGBB
,#RRGGBBAA
) - Other common CSS formats (
rgb(..)
,hsl(..)
,oklch(..)
) - Hex literal (
0xRRGGBB
,0xAARRGGBB
) - Any list of 3 or 4 numbers can be used as a color (e.g.
0.5, 0.5, 0.5
or120, 120, 120, 255
)
- Hex (
- Hardware accelerated for maximum smoothness and high resolutions
Installation
Download from Releases.
If you have cargo, you can also install with:
cargo install oklch-color-picker --locked
Check out the neovim plugin that this picker was made for eero-lehtinen/oklch-color-picker.nvim.
Inspired by https://oklch.com/.
Dependencies
~21–63MB
~1M SLoC