I recently had a chance to do some playing around with the additive drawing feature in gosu. I just wanted to show off some of the results as I work on it:
It adds the pixel values of the image to those on the screen (instead of interpolating between them), maxing out at (255, 255, 255). I.e. if you want to draw fire particles, you would use :additive and the more particles would overlap, the brighter the color of the particle cloud would look like.
nice! those images and vid look sweet. Any chance anyone here could post some code examples of how this is done? I had no idea gosu could do something like this. Are you using some special libs or rmagick? Anything you'd want to share would be MOST appreciated! ;) Heck, just code is fine with me-- don't need a formal tutorial or anything. Just thought I'd ask. Great work either way.
I've shared the source with a few people on the IRC channel, but give me a little more time to spruce things up before I make any official releases. To answer your question though, this was done simply with gosu, entirely using the draw_line method of the window class.
Thanks for the reply and information, I totally understand! In the meantime, if anyone else following this thread has some tiny example code of anything related I'd love to see it. I will likely mess around anyway but code always helps. Cool that this can be done in Gosu- I can't wait to try out some 'additive' effects in my games now.