Qiengo
Qiengo

Reputation: 143

How to draw Center gradient in Libgdx

How to draw Center gradient in Libgdx of android

the following effect

enter image description here

I haven't skilled in OpenGL of Libgdx... Thanks!

Upvotes: 2

Views: 1112

Answers (1)

Jose Luis CM
Jose Luis CM

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

Related Questions