android - Change the color of a texture -


is possible change color of texture random color , how can if it's possible? think way create sprite sheet object in different colors , change region randomly, don't know sure.

if have white texture can change spritebatch colour tint image.

batch.setcolor(new color(r,g,b,a)); batch.draw(texture, x, y); batch.setcolor(new color(1,1,1,1)); // reset default colour 

Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -