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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -