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

pre-multiplied alpha continued #2113

Open
3 of 4 tasks
notpygame opened this issue Sep 22, 2020 · 1 comment
Open
3 of 4 tasks

pre-multiplied alpha continued #2113

notpygame opened this issue Sep 22, 2020 · 1 comment
Assignees
Labels
color pygame.color docs enhancement Surface pygame.Surface

Comments

@notpygame
Copy link
Contributor

notpygame commented Sep 22, 2020

BLEND_PREMULTIPLIED was implemented in this issue: #1289

To make it more usable for people, the following could be done:

@MyreMylar MyreMylar self-assigned this Sep 23, 2020
@illume illume closed this as completed Sep 27, 2020
@illume illume reopened this Sep 27, 2020
@ankith26 ankith26 added docs and removed needs-docs labels Oct 24, 2020
@MyreMylar MyreMylar linked a pull request Apr 7, 2022 that will close this issue
1 task
@MyreMylar
Copy link
Contributor

I think my initial idea for adapting .convert_alpha() was too unfocused and messing with the clarity of an existing function.

Instead I think I should mirror the PR for the Color class and just add a .premul_alpha() method to Surface that begins by erroring out if the surface is not 32bit with an alpha channel.

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

Successfully merging a pull request may close this issue.

4 participants