Dec-29-2021, 05:13 PM
Hello all,
I am completely new here, I hope my question is correct here. I am programming a football manager game and would like to add a selection of a jersey color. The RGB colors are completely free selectable and a jersey should be colored in exactly this color.
My first approach was to load a white jersey with transparent background as Surface, and fill it with the desired color. However, I then only get a square box with the color, obviously the transparent pixels are also filled with the color. In addition, the black pixels (folds in the jersey) were also colored.
My goal is to have a jersey filled with the desired color, but still have a transparent background. I would be very happy about any hints or suggestions for solutions.
I am using Pygame.
Many greetings
Sandor
I am completely new here, I hope my question is correct here. I am programming a football manager game and would like to add a selection of a jersey color. The RGB colors are completely free selectable and a jersey should be colored in exactly this color.
My first approach was to load a white jersey with transparent background as Surface, and fill it with the desired color. However, I then only get a square box with the color, obviously the transparent pixels are also filled with the color. In addition, the black pixels (folds in the jersey) were also colored.
My goal is to have a jersey filled with the desired color, but still have a transparent background. I would be very happy about any hints or suggestions for solutions.
I am using Pygame.
Many greetings
Sandor