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: 1024
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

Spritebatch color?

Post by Taehl » Fri Nov 12, 2010 11:32 pm

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 » Sat Nov 13, 2010 2:30 am

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 » Sat Nov 13, 2010 2:32 am

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 » Sat Nov 13, 2010 2:34 am

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: 1024
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

Re: Spritebatch color?

Post by Taehl » Sat Nov 13, 2010 2:49 am

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 » Sat Nov 13, 2010 6:31 am

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: Google [Bot] and 29 guests