Skip to content

calling Darker() on a dark color can return a lighter color #10

Open
@kmanley

Description

@kmanley

Great library - thanks for making it. One small thing I noticed is that calling Darker() on a dark RGB color can actually return a lighter RGB color. It would be more intuitive (at least to me!) if it clamped to black. On a related note it would be useful to have helper functions like IsDarker(color1, color2) bool and GetContrast(color1, color2) in the package.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions