play icon indicating copy to clipboard operation
play copied to clipboard

Question: how can I make rotated image bounding box trasnparent?

Open ducaale opened this issue 5 years ago • 3 comments

This is what I am getting on windows 10 and with replit-play v0.0.23

Annotation 2020-02-01 213126

ducaale avatar Feb 01 '20 21:02 ducaale

Commenting out this line fixes the issue for me. But I am curious if this works on other platforms. and if so why it is needed?

ducaale avatar Feb 09 '20 21:02 ducaale

I also have the same problem, which is caused by rotating the image. macOS 10.15 and with replit-play v0.0.23

robinwei001 avatar Mar 07 '20 10:03 robinwei001

I have found a solution,play.py needs to be modified,line 419,self._primary_pygame_surface,need to use convert_alpha(),replace the following set_colorkey method to set_alpha and set the value of alpha to 0.Hope to be helpful to others.

robinwei001 avatar Mar 08 '20 13:03 robinwei001