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

Re: [pygame] stupid question



enrike wrote:
Yes but i am not importing an image but creating filling and drawing on a surface. I would like to have background transparent on the surface. Do i have to create the surface in some special way?
Take a look at that load_image function. It is loading a non-transparent image from a BMP and then adding colorkey transparency to it. There is nothing special you need to do. Call Surface.set_colorkey() with the color you want to be transparent. That's it.