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

set* versions of color channel functions #1948

Closed
matthewwithanm opened this issue Apr 2, 2014 · 1 comment
Closed

set* versions of color channel functions #1948

matthewwithanm opened this issue Apr 2, 2014 · 1 comment

Comments

@matthewwithanm
Copy link

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 to hsl(hue(@c), saturation(@c), @lightness) in the same way that fade(@c, @alpha) is to rgba(red(@c), green(@c), blue(@c), @alpha).

@seven-phases-max
Copy link
Member

seven-phases-max commented Nov 16, 2017

Implement as a plugin (first). See #1853 for more on the current "new color functions" approach.

@less less deleted a comment from stale bot Nov 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants