Re: [pygame] Surface.blit() BLEND_ADD vs. BLEND_RGBA_ADD

2011-12-23 Thread Greg Ewing
Florian Berger wrote: Would it be better to have a BLEND_ADD_PREMULT blit mode instead, i.e. put the premultiplication in the blitting code? Not sure that would be the best name for it, since it could be taken as meaning that the image you give it is already premultiplied. Also, it would solv

Re: [pygame] Surface.blit() BLEND_ADD vs. BLEND_RGBA_ADD

2011-12-23 Thread Florian Berger
Hi! René Dudfield : > > Maybe the RGBA_PREMULT of pygame.image.tostring could be used... It works. Thanks, man! A visual example of the problem and your solution is at http://pastebin.com/0JJQVYe8 . Just curious, how bad is the performance penalty for this double conversion step? Would it be be