# How can I efficiently resize sprites every frame?

I want to animate UI elements, like HP bars, by moving and resizing them. How can I efficiently resize sprites every frame?

I am using the LibGDX framework.

• A sprite? No. 23 thousand? Probably. – Alexandre Vaillancourt Mar 26 '17 at 2:08
• Would it be appropriate to edit this question to read as "How would I efficiently resize a sprite every frame?" so it can be answered cleanly? – MickLH Mar 26 '17 at 2:41

Texture tex = new Texture(Gdx.files.internal("image.png"), true);

tex.setFilter(TextureFilter.MipMapLinearLinear, TextureFilter.Linear);