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

Re: [pygame] Blitting to alpha channel or using another image's alpha channel



Weeble wrote:
Aha! I had better luck with the following:

    newsurf=pygame.Surface((128,128),flags=pygame.SRCALPHA)
    newsurf.blit(sourcesurf,(0,0))
    newsurf.blit(masksurf,(0,0),None,pygame.BLEND_RGBA_MIN)

(This time the mask surface was entirely white with the alpha channel
storing the intended mask value.)
Yes, you beat me to it. Ignore my post. I incorrectly suggested the mask have black pixels.

--
Lenard Lindstrom
<len-l@xxxxxxxxx>