Closed madhan001 closed 3 years ago
Hi,
The expected behaviour is that black is interpreted as transparent if you give the argument colorkey=(0,0,0) when instantiating the button. If this does not work, could you provide the bit of code that poses problem ? Thanks, Yann
Hi,
The expected behaviour is that black is interpreted as transparent if you give the argument colorkey=(0,0,0) when instantiating the button. If this does not work, could you provide the bit of code that poses problem ? Thanks, Yann
Thanks, setting colorkey=(255,255,255) worked. May I know what exactly does this parameter do ?
It has the same effect as calling set_colorkey(some_color) method on the button's image. See https://www.pygame.org/docs/ref/surface.html#pygame.Surface.set_colorkey for more details.
Thank you for assisting me. Closing this issue
Hi, Thank you for this library. I'm trying to use an image with rounded corners as a button using the make_image_button function and I'm unable to use them without having black colour in the areas that need to be transparent. I tried setting the alpha parameter to 0 and that doesn't seem to help it.
I'm using version 1.9 of Thorpy with Pygame 2.0 and python 3.6 on ubuntu 18.04.
This is what the transparent corner looks like