Skip to content

ozwaldorf/oklabby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oklabby

Simple cli tool for oklab color manipulation

Usage

Install from source

git clone https://github.com/ozwaldorf/oklabby
cargo install --path .

Nix

A nix flake is available and can be run easily with:

nix run github:ozwaldorf/oklabby

Cache is provided via https://garnix.io

Examples

Show different encodings of colors

oklabby show 000 fff

Average N colors

image

# rgb hex codes
oklabby average 000 ffffff ...

# or use oklab floats directly
oklabby average "[0.0, 0.5, 1.0]" "[0,0,0]" ...

Quantize N steps between colors (inclusive)

image

oklabby quantize -s16 fff "[0,0,0]"

Generate shades using quantize

image

oklabby quantize -s9 000 00f fff

About

Simple cli tool for oklab color manipulation

Topics

Resources

Stars

Watchers

Forks