Spritebatch color?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Taehl
Dreaming in associative arrays
Posts: 1025
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

Spritebatch color?

Post by Taehl »

Apparently love.graphics.setColor doesn't affect spritebatches, so, how can I draw a spritebatch as semitransparent?
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
User avatar
ninwa
Party member
Posts: 118
Joined: Tue Oct 12, 2010 1:21 am
Location: Metro Detroit
Contact:

Re: Spritebatch color?

Post by ninwa »

Would an acceptable solution be to have the original images be transparent?
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: Spritebatch color?

Post by TechnoCat »

ninwa wrote:Would an acceptable solution be to have the original images be transparent?
workaround at best.
User avatar
ninwa
Party member
Posts: 118
Joined: Tue Oct 12, 2010 1:21 am
Location: Metro Detroit
Contact:

Re: Spritebatch color?

Post by ninwa »

TechnoCat wrote:
ninwa wrote:Would an acceptable solution be to have the original images be transparent?
workaround at best.
Sure. I would probably suggest just baking your own quick spriteBatch equivalent. It may not be equivalent within LOVE, but it'll work just as well, with the added bonus of being able to control transparency.
User avatar
Taehl
Dreaming in associative arrays
Posts: 1025
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

Re: Spritebatch color?

Post by Taehl »

Not a bad idea, ninwa, but that means I'd have to have two copies of a very large number of graphics, so, no, not really. But thanks for chipping in.
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
User avatar
bmelts
Party member
Posts: 380
Joined: Fri Jan 30, 2009 3:16 am
Location: Wiscönsin
Contact:

Re: Spritebatch color?

Post by bmelts »

Old news.

It's been fixed for a while now; the 0.7.0 beta has the fix, for example.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 50 guests