I'm using texture and textureAtlas in libgdx. This textures loads images of white circle.
How can I overlay its color with another color? Or maybe their is another approach for this?
private final static TextureAtlas textureAtlas = new TextureAtlas(Gdx.files.internal("spritesheet.atlas"));
private final static TextureAtlas.AtlasRegion texture = textureAtlas.findRegion("Bubble.001");
EDIT: As I said I have a white circle and I want to make it red (without the need for another image with a red circle)
spriteBatch.setColor
to set a tint-color. Everything drawn with thespritebatch
will then be tinted. – Robert PSprites
instead of manually submitting texture regions to the sprite batch, then usesprite.setColor
instead. If that doesn't work, you need to explain exactly what you're using for the texture. A PNG file with alpha channel? – Tenfour04