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

Allow the user to specify a scaling function (UIImage) #642

Merged

Conversation

joereynolds
Copy link
Contributor

Hello!

Small PR to add in the ability to choose between different scaling functions. I noticed I was getting some blurry scaling happening and it was because of smoothscale being hardcoded as the scaling algorithm.

smoothscale doesn't always give the desired aesthetic results. We should give the option to inject our own scaling function of a surface in.

Setting scale_func to pygame.transform.scale

image

Setting scale_func to pygame.transform.smoothscale

image

Thanks!
:D

`smoothscale` doesn't always give the desired aesthetic results.
We should give the option to inject our own scaling function of a
surface in.
@MyreMylar MyreMylar merged commit 1b4bcdc into MyreMylar:main Nov 3, 2024
9 checks passed
@MyreMylar
Copy link
Owner

All looks good to me. Thanks for the PR!

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