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

Re: [pygame] Overwrite color not alpha?



Kamilche wrote:

On an RGBA picture, is there a way to quickly fill the RGB portion while leaving the A portion untouched? The only way I know how to do it is create a new surface and assign the alpha channel with Numeric, but that's awfully slow.

--Kamilche

Try this:

 glColorMask(True, True, True, False)

Gary Herron