Reputation: 143
How to draw Center gradient in Libgdx of android
the following effect
I haven't skilled in OpenGL of Libgdx... Thanks!
Upvotes: 2
Views: 1112
Reputation: 71
Probably the best way will be a PNG with transparency and loading the Texture from a Texture or TextureAtlas on the code. After that, adapt the position (setPosition) and scale (setScale) and you will have a similar efect on the screen.
You can create Circle, Rectangle,...but gradients. I don't think so. Check libGDX wiki.
Upvotes: 1