[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Making the sprite sheet background transparent



You want to save a new image with transparency?
Try: .set_colorkey http://www.pygame.org/docs/ref/surface.html#Surface.set_colorkey
then saving the image.

On Thu, Apr 14, 2011 at 2:36 PM, ANKUR AGGARWAL <coolankur2006@xxxxxxxxx> wrote:
Yup,infact already did that. But I want to do it in python style :O:O


On Fri, Apr 15, 2011 at 1:03 AM, Eamonn McHugh-Roohr <eamonn.m.r@xxxxxxxxx> wrote:
It's easy enough to open it up in Photoshop or gimp and actually make the image's background transparent, then you just call .convert_alpha() on it after you load the image.


On Thu, Apr 14, 2011 at 3:26 PM, ANKUR AGGARWAL <coolankur2006@xxxxxxxxx> wrote:
Hey
I want to make the  sprite sheet background as  transparent. How I can do that???
Code and the images is attached with the mail. Thanks in advance.

Ankur Aggarwal





--
Jake