pygame-ce 2.5.0 (SDL 2.30.3, Python 3.12.0)
Platform: Windows-11-10.0.22631-SP0
System: Windows
System Version: 10.0.22631
Processor: AMD64 Family 23 Model 104 Stepping 1, AuthenticAMD
Architecture: Bits: 64bit Linkage: WindowsPE
Python: CPython 3.12.0 (tags/v3.12.0:0fb18b0, Oct 2 2023, 13:03:39) [MSC v.1935 64 bit (AMD64)]
pygame version: 2.5.0
SDL versions: Linked: 2.30.3 Compiled: 2.30.3
SDL Mixer versions: Linked: 2.8.0 Compiled: 2.8.0
SDL Font versions: Linked: 2.22.0 Compiled: 2.22.0
SDL Image versions: Linked: 2.8.2 Compiled: 2.8.2
Freetype versions: Linked: 2.11.1 Compiled: 2.11.1
Display Driver: windows
Mixer Driver: Mixer Not Initialized
Current behavior:
We get a black surface when we try to use pygame.transform.hsl on an image loaded with pygame.image.load. Without converting it it's still black, and when converting it with convert_alpha it's still not working. However, it works when using convert.
Expected behavior:
It should work in any ways you load an image.
Steps to reproduce:
In the code below, test the result with each case of image loading (they are commented).
Environment:
Current behavior:
We get a black surface when we try to use
pygame.transform.hsl
on an image loaded withpygame.image.load
. Without converting it it's still black, and when converting it withconvert_alpha
it's still not working. However, it works when usingconvert
.Expected behavior:
It should work in any ways you load an image.
Steps to reproduce:
In the code below, test the result with each case of image loading (they are commented).
Test code
This is a test image to use :