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

support set contrast with ratio #168

Closed
gasolin opened this issue Nov 27, 2019 · 1 comment
Closed

support set contrast with ratio #168

gasolin opened this issue Nov 27, 2019 · 1 comment

Comments

@gasolin
Copy link

gasolin commented Nov 27, 2019

as w3c spec of CSS filter effects
https://www.w3.org/TR/filter-effects-1/#contrastEquivalent

CSS user able to set filter: contrast(100) property to change the color, ex:
https://vanseodesign.com/css/filters-to-adjust-brightness-contrast-opacity-and-inversion/

Another nice to have is set the brightness via https://github.com/Qix-/color/issues/53#issuecomment-487822576

@Qix-
Copy link
Owner

Qix- commented Apr 5, 2022

Hi - this doesn't make much sense as the contrast filters require an entire image in order to determine the relative adjustments per-pixel. This library just works with single colors.

@Qix- Qix- closed this as completed Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants