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

gfxdraw.filled_polygon producing incorrect image #132

Closed
thautwarm opened this issue Oct 10, 2021 · 2 comments
Closed

gfxdraw.filled_polygon producing incorrect image #132

thautwarm opened this issue Oct 10, 2021 · 2 comments

Comments

@thautwarm
Copy link

Hi Tom!

The following statement in pygame-sdl2 behaves differently in pygame:

# 'color' is an uint8 triple
# 'Map' is an SDL Surface  
pygame.draw.polygon(Map, color, points)

With data provided in this file,
pygame(simple pip install-ed one) produces:
by-pygame

pygame-sdl2 produces:
by-pygame-sdl

I tried many images but pygame-sdl2 always ignore the rightmost part and did no coloring.

also tried directly feed parameters to gfxdraw.filled_polygon and the results didn't change.

@thautwarm
Copy link
Author

OS info: 18.04-1 Ubuntu x86_64

@thautwarm
Copy link
Author

It works. The problem is pygame_sdl2.image.save.

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