sharkdp / pastel

A command-line tool to generate, analyze, convert and manipulate colors
Apache License 2.0
5.04k stars 97 forks source link

Support HSV and HBW color spaces? #53

Open sharkdp opened 5 years ago

sharkdp commented 5 years ago

https://en.wikipedia.org/wiki/HSL_and_HSV https://en.wikipedia.org/wiki/HWB_color_model

jetpacktuxedo commented 5 years ago

It's probably a more complex conversion, but it could be nice to implement cielab and/or HCL. as well

sharkdp commented 5 years ago

We already have CIELAB and LCh (which is basically the same as HCL)

jetpacktuxedo commented 5 years ago

Yeah, I actually just saw those in the colorspace options for gradient 🤦‍♂

sharkdp commented 5 years ago

Yes :smile: You can also convert to Lab/LCh via pastel format. A lot of internal computations are actually performed in Lab space (like computing perceived color differences).