ParticleSystem and setColor
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
ParticleSystem and setColor
Hi, love2d newbie here, I've noticed something peculiar with the ParticleSystem - if I have love.graphics.setColor(color) for say drawing a shape, then draw my particleSystem object afterwards, the particles will always have the color from the previous setColor, ignoring whatever is set by ParticleSystem:setColors initially (I'd expect it to be the interpolated color). Is this a bug or am I missing something..
Re: ParticleSystem and setColor
Set the color back to white before drawing the particle system.
- slime
- Solid Snayke
- Posts: 3162
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: ParticleSystem and setColor
Just a clarification, the global constant color and the per-particle colors get multiplied (modulated) together when the particle system is drawn – so neither overwrites the other, but if you don't want a custom constant color then you'll still need to set it to the default white when drawing.
Who is online
Users browsing this forum: Bing [Bot] and 3 guests