How could we create a trail effect for player swipe?

I am creating a football penalty game. Could we create a trail for where player is touching on screen?

Could anyone help me out with this?

Hi @yash_mehrotra!

Below an example project of a trail effect.

https://playcanvas.com/project/733569/overview/rainbow-trail-with-mesh-api

Maybe you can modify it to your needs.