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 alpha colour support in plugdata #50

Merged
merged 2 commits into from
Aug 27, 2024
Merged

Conversation

timothyschoen
Copy link
Contributor

I think this should be possible in purr-data too? I added this, since there is basically no other way to do transparency in Pd.

@agraef
Copy link
Owner

agraef commented Aug 27, 2024

Ah, I already wondered why I couldn't get transparency in plugdata to work. Not sure whether Tk supports alpha blending nowadays, but even if it does, vanilla Pd probably doesn't.

I think this should be possible in purr-data too?

Sure is, the GUI is basically Chromium after all:

purr-data-alpha

Note that both the comment text and the canvas rectangle are actually behind the dial. All parts of the pdlua object (except the border of the dial's face) have various degrees of transparency.

The required changes in pdlua_gfx.h and pdlua.c are minimal. I'm ready to commit them along with your PR.

@agraef agraef merged commit 774a13c into agraef:master Aug 27, 2024
10 checks passed
@agraef
Copy link
Owner

agraef commented Aug 27, 2024

Merged, thanks!

@agraef
Copy link
Owner

agraef commented Aug 27, 2024

BTW, what's up with those palette colors 0, 1, 2? They seem to be different between plugdata and vanilla where both 0 and 2 are white, and 1 is black. Is 2 supposed to be an alternative background color? Should any of these have transparency in plugdata or purr-data?

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

Successfully merging this pull request may close these issues.

2 participants