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

Fix behavior of alpha= #19

Open
docelic opened this issue Apr 8, 2023 · 0 comments
Open

Fix behavior of alpha= #19

docelic opened this issue Apr 8, 2023 · 0 comments

Comments

@docelic
Copy link
Collaborator

docelic commented Apr 8, 2023

By definition, alpha=1.0 means full opacity.

But, currently, due to how term_colors implements blending of colors, alpha=1 means full transparency.
This should be adjusted to have the standard meaning.

Running small-tests/shadow.cr and pressing arrows Up and Down allows changing the alpha value by 0.1 and seeing the result.

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

1 participant