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

ios - Assigning a value out of array of arrays, using section in Xcode -

r - XTS-File doesnt work for quantstrat -