Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rotate in La*b* space #152

Open
StyXman opened this issue Sep 22, 2021 · 1 comment
Open

Rotate in La*b* space #152

StyXman opened this issue Sep 22, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@StyXman
Copy link

StyXman commented Sep 22, 2021

What says on the tin. Very useful when trying to find colors of the same Luminance.

@sharkdp
Copy link
Owner

sharkdp commented Oct 2, 2021

I agree, that should be supported. Note that this might result in colors outside of the sRGB gamut though. We need a general strategy on how to handle such scenarios.

Note that you can already do this with some scripting. You can first extract the current LCh hue with

hue=$(pastel format lch-hue "$color")

and then set the rotated hue with

pastel set lch-hue "$new_hue"

Unfortunately, I just noticed that lch-hue can not be set yet either.

@sharkdp sharkdp added the enhancement New feature or request label May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants