-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
Add Premultiplied Alpha tutorial #2531
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to make these images as small as possible to keep the overall download small. I think some sort of visual was needed though.
spelling and grammar pass
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I learnt something useful too, thanks for the PR! 🍰
Left a minor review for your consideration, resolve at will
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the casual inclusion of wraplength
functionality! Nice modern examples using the quality of life stuff.
Gave it a read through. Only thing that immediately popped up to me is that in some places you construct pygame.Color
objects to pass to fill
and in others you don't.
Merge when you're ready.
Consistent color arguments
This should finally close #1115 by adding a tutorial on how to use premultiplied alpha in pygame applications to fix alpha composition errors and slightly speed up your blitting.