Page 1 of 1

Surface.blit with optional special flags

Posted: Fri Jul 23, 2010 2:15 am
by Leoben
Immediately I apologize for my English.
I have a question Ren'py.

Purpose:
I want to add the ability to display images with the flags mixing pygame.BLEND_ADD, pygame.BLEND_MULT etc. ...

The undertaken work:
I managed to renpy.Displayable display these flags for static images, through the transfer of one additional parameter Image(path).blend = pygame.BLEND_ADD and rendering it through dest.blit (what, (x, y), pygame.BLEND_ADD)

The problem is as follows:
As soon as I started image handled by the class Transform () and starts animation, effect of blending is disappears.
I found out that the class Transform rooted in SDL (renpy.display.module.transform and _renpy.pyx, _renpy.c)

Question:
How can I make such an effect blending to transform the images?

Thanks in advance for the help.
P.S. If it is important, I use 6.10.1 version Ren'py

Re: Surface.blit with optional special flags

Posted: Fri Jul 23, 2010 2:39 am
by PyTom
Sorry, but those modes aren't supported.

Re: Surface.blit with optional special flags

Posted: Fri Jul 23, 2010 4:33 am
by Leoben
Thanks for the reply.