-
Notifications
You must be signed in to change notification settings - Fork 4
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
Easy way to manipulate individual hcl axes? #20
Comments
I was waiting for someone to suggest this, so now it is time :) I like |
I think having individual functions would be a substantial decrease in usability. |
Could you expand on your reasoning? Adding
vs
Is it because it would add many more functions with redundancy? |
Right, this is a lot of typing: x %>%
modify_hue(50) %>%
modify_chroma(10) Compared to: x %>% modify_hcl(h = 50, c = 10) I think it's reasonable to assume that people know what Also note that these two operations don't necessarily produce the same colour: x %>%
modify_hue(50) %>%
modify_chroma(10)
x %>%
modify_chroma(10) %>%
modify_hue(50) Really you want to do all the modifications in one transformation to hcl space, rather than going back and forth to and from rgb multiple times. |
I happened! It took a while for me to get around to it |
Thanks! |
Something like this maybe:
Idea is to make it easy to do (e.g.)
modify_hcl(x, h = 25)
ormodify_hcl(x, h = h + 10)
The text was updated successfully, but these errors were encountered: