-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
set* versions of color channel functions #1948
Labels
Comments
seven-phases-max
added
support as plugin
and removed
low priority
needs decision
labels
Nov 16, 2017
Implement as a plugin (first). See #1853 for more on the current "new color functions" approach. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, most of the color operation functions modify a channel relative to its current value. (
fade
is the exception here, allowing you to specify the alpha value to use for the result, regardless of the input value.)It would be nice if there were set* functions for each of the color channels. For example,
setlightness(@c, @lightness)
would be equivalent tohsl(hue(@c), saturation(@c), @lightness)
in the same way thatfade(@c, @alpha)
is torgba(red(@c), green(@c), blue(@c), @alpha)
.The text was updated successfully, but these errors were encountered: