How to Draw Alpha Transparency of an image in another color for Debug Purposes

Hi guys!
I want to do something unusual , at least for me,

Basically, i have this :

batchPlayer.setProjectionMatrix(camera.combined);
        batchPlayer.begin();
        worldUpdate.updateAndRenderArrows(batchPlayer);
        worldUpdate.updateAndRenderEnemies(batchPlayer);
        player.draw(batchPlayer);
        batchPlayer.end();

How should i make it in a way, so i can draw the transparency of the images in red for example? or pink?

is there any method in SpriteBatch?

A quick solution I can think of would be that you just draw a square of the desired colour behind the Sprite. Not very efficient but I guess it would do the trick for “debugging purposes”

Call player.setColor(r, g, b, a). Would that do it for you?

Well it didnt work but was some nice effect i got :open_mouth:

I may need to draw a rectangle :stuck_out_tongue:

What exactly do you need to do? Like, what are you trying to achieve?

I was just trying to check the collision detection with my actor. but its ok i guess :stuck_out_tongue: