Skip to content

Invert brightness but not color #38

@AnotherNeko

Description

@AnotherNeko

I want to add an option to invert the brightness but not the hue of every color on the webpage.
I'd happily help by contributing an algorithm (pseudo-code or JavaScript or C++) that takes a color input RGB(A) and performs the correct color transformation to keep the color but get the opposite brightness, returning some different RGB(A) with the same dominant color as the input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions