Skip to content

set* versions of color channel functions #1948

Closed
@matthewwithanm

Description

@matthewwithanm

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions