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

Add gamma correction to opacity #4

Closed
gnavvy opened this issue Dec 23, 2015 · 1 comment
Closed

Add gamma correction to opacity #4

gnavvy opened this issue Dec 23, 2015 · 1 comment
Assignees
Labels

Comments

@gnavvy
Copy link
Contributor

gnavvy commented Dec 23, 2015

Apply gamma correction to opacity to make it visually "linear":
opacity => Math.pow(opacity, 1 / 2.2)

Ref: https://en.wikipedia.org/wiki/Gamma_correction

@gnavvy gnavvy added the P1 label Dec 23, 2015
@gnavvy gnavvy self-assigned this Dec 23, 2015
@gnavvy
Copy link
Contributor Author

gnavvy commented Jan 16, 2016

Fix by @ibgreen on aa58f4f.
Close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant