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

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



Hi!

René Dudfield <renesd@xxxxxxxxx>:
>
> 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 better to have a BLEND_ADD_PREMULT blit mode instead, i.e.
put the premultiplication in the blitting code?

Kind regards,

        Florian