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

fade window alpha when mouse is not over them #326

Open
KrabCode opened this issue Nov 20, 2024 · 2 comments
Open

fade window alpha when mouse is not over them #326

KrabCode opened this issue Nov 20, 2024 · 2 comments

Comments

@KrabCode
Copy link
Owner

KrabCode commented Nov 20, 2024

this can be tricky due to overlaid effects inside a single window, like rectangles and text on top of each other
or it would require a major rewrite for each window to use its own PGraphics so that it can be faded as a whole

@KrabCode
Copy link
Owner Author

KrabCode commented Nov 20, 2024

naively drawing separate PGraphics at an alpha that is a constrained function of time since last mouseover would still make the GUI have dark spots wherever windows overlap - maybe the approach with the separate PGraphics is useful, but we could draw all of them except the ones that are fading out on the "background canvas" at full alpha and only fade them out together as the whole canvas, while drawing the "active" windows on top of that separately, which should limit the dark spots to only whenever "active" or "recently active" windows overlap

@KrabCode
Copy link
Owner Author

the benefit would be being able to use small canvases that are half-full of gui elements and still see the artwork

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