Widening circle (SOLVED)

Hello!

I want to do some kind of a widening circle to illustrate sound or another effect. It should look like a centric circle with an increasing radius and a decreasing alpha channel value until it disappears.

I tried to find some API to draw circles, also tried to use particles but they are random spawned and do not form a right circle form (However, I think I am able to write a shader that forces them to spawn simultaneously and form a right circle but it will take a lot of efforts). Moreover, I tried to find something like a ninepatch in libgdx. All my attempts were unsuccessful.

How can I reach such kind of effect?
Has anybody tried to implement something similar to that?

Thanks,
Evgeny.

2 Likes

You can really use a shader to draw the effect. Something like this.
https://www.shadertoy.com/view/MdtXWX

3 Likes

If the size change is reasonably small you can do this with a sprite that you animate scale and tint on.

1 Like

Thank you! That is what I want to see and it looks simpler than I expected. Also, thanks for sharing the link.

Unfortunately, it should be a relatively large size change and scaling is not appropriate. However, I agree with you that for small changes it is a good way.