Coloring White Textures

So I’m using the standard OpenGL/LWJGL setup

There’s this effect I want to get, but I don’t know how I should go about it
I have a texture that’s either completely white or completely transparent
I want to make it so that it changes color over time
I know how the RGB color system works, so game logic isn’t the problem

Which methods should I use to color this texture? Is it even possible to color an individual texture?

Thanks

Depends on your needs. Are you coloring the whole thing a solid color? Or is it a gradient, or a pattern, etc?

If you just need a solid colour, render a quad (or two tris) and modulate the vertex colours (glColor4f) over time.

The whole idea is that the color only changes where the texture is colored white

… Try giving us some more details if you want help.

Vertex colours will modulate your opaque white pixels; the transparent pixels will be ignored since their alpha will be zero.

I realized that setting “glColor3f()” before drawing my quads will tint my sprites in the way that I was going for. I wasn’t clear on that before

Thanks

Are you purposefully trying to make your issue vague and ambiguous? :clue: Like I said…

[quote]… Try giving us some more details if you want help.
[/quote]