pastel icon indicating copy to clipboard operation
pastel copied to clipboard

Support HSV and HBW color spaces?

Open sharkdp opened this issue 5 years ago • 4 comments

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

sharkdp avatar Aug 13 '19 14:08 sharkdp

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

jetpacktuxedo avatar Aug 28 '19 18:08 jetpacktuxedo

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

sharkdp avatar Aug 28 '19 19:08 sharkdp

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

jetpacktuxedo avatar Aug 28 '19 19:08 jetpacktuxedo

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).

sharkdp avatar Aug 28 '19 19:08 sharkdp