Blend additive
nicoX
I need additive blend for an explosion sprite, and I am looking foran easy way to do it.


I thought I could get the image data of the background sprite and add pixelbby pixel, but it would be slow. I know there must be a simpler way... Does anyone know how to do it?

Thanks in advance for your help
1 Comment
Gio

Hi Nico

 

You can do this:

sprite.setDrawFunction(wade.drawFunctions.composite_('lighter', sprite.draw));
Post a reply
Add Attachment
Submit Reply
Login to Reply