pastel icon indicating copy to clipboard operation
pastel copied to clipboard

'set' and relative operations for properties in HSV space

Open sschuldenzucker opened this issue 1 year ago • 1 comments

pastel set doesn't support properties of HSV space and there is no operation that supports relative changes in HSV space (darken and desaturate operate in HSL)

I've been looking for this b/c I've found it quite convenient to reduce V while keeping H and S the same to create darker / hierarchically subordinate versions of a given color for UI text.

pastel already supports this "manually" using pastel format hsv, manually changing the result and reading it back in to pastel color, so it should be pretty straightforward.

sschuldenzucker avatar Dec 02 '24 21:12 sschuldenzucker

Thanks for opening this issue. I agree that we should support darkening/lightening in other color spaces. LCh an Lab would be other candidates. LCh/Lab might be the better default compared to HSL or HSV?

sharkdp avatar Dec 27 '24 19:12 sharkdp