Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Blendings
- By Wurstinator Date 2010-03-09 18:03
Hi, it's me again :>
I'd like to make a request for coming GOSU versions: blendings for images.
You know, the standard calculation of a pixel is just adding RGB values and dividing by the alpha percentage.
But most graphics programs like Photoshop or GIMP have layer blendings like "Mulitplication", "Division", "Addition" etc.
Is there a way to give the Gosu::Images this ability of drawing? You can create much more atmosphere with it :) (important for me because I am developing an RPG and will maybe switch to GOSU)
- By jlnr (dev) Date 2010-03-09 18:20
(It's Gosu or gosu, but never an acronym ;))

You can indeed pass :additive to pretty much every drawing operation as the "mode" parameter. You're lucky, :multiply has just been contributed as well, I just need to merge it ;)
- By Wurstinator Date 2010-03-09 19:36
Nice :D
I always wondered what the mode parameter is used for but I didn't found seomthing in the Doc.

Well, I don't know how you do the calculation but shouldn't it be easy now to implement other blendings if you got the formulas?
Up Topic Gosu / Gosu Exchange / Blendings

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill