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 ever-increasing opacity #21

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

Fix ever-increasing opacity #21

docelic opened this issue Apr 8, 2023 · 0 comments

Comments

@docelic
Copy link
Collaborator

docelic commented Apr 8, 2023

There is an issue with transparency, where a transparent element gets more opaque on every render.

This is caused by code found at first occurrence of 'transparency' in src/widget.cr.

Example can be seen e.g. on members list widget in examples/chat.cr.

In Blessed, the value of lines[y][x][attr] seems to always be the same, whereas in our case it has the resulting value from previous render, and so on every render the field's color gets additionally blended until it has 100% opacity rather than staying at initial/desired value.

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