Page 1 of 1

Transparency

Posted: Mon Apr 30, 2012 6:25 pm
by Neon
How do I make a drawn rectangle, or image slightly transparent? Can I?

Also, if you have any ideas for a GUI Library, I'd like to hear them.

Re: Transparency

Posted: Mon Apr 30, 2012 6:35 pm
by Camewel
You can use love.graphics.setColor as such.

Code: Select all

love.graphics.setColor(255,255,255,a) -- where a is the transparency between 0 and 255, with 0 being invisible and 255 being completely visible.
love.graphics.draw(image, x, y) -- draw your image.
love.graphics.setColor(255,255,255,255) --make other things completely visible after this point.