I'm currently trying to develop a game using Cocos2d-x using C++. I really need to generate this burst or (donut-shaped) pulse. I'm having a difficult time how to generate such shape.
At first, I was thinking of scaling the image but that didn't work out because the line or "diameter" of the donut shape gets bigger accordingly. Any experienced coders who can provide an equation of this thing? or maybe "mathematics" is more exact.