Mumble...mumble...
Canvas has not a DrawArc, which we need.
The line drawn should be made of sine wave, the length is of int of half cycles (ie: 0.5, 1,1.5 ...).
The selected wave is the result of where the band is pinched, if in the middle it will be one half cycle.
This kind of effect is usually done with Bezier curves for the drawing and an interpolator for the animation. libGDX offers everything needed in its Math package.Paint.Net:
View attachment 40803
If you could realize the same, then you could realize the elastic effect.
I don't see a match with a rubber band (tyre) and the animation above tho.
Perhaps 2 animations? ("Down"-"Up"-Delay)This kind of effect is usually done with Bezier curves for the drawing and an interpolator for the animation. libGDX offers everything needed in its Math package.
It's something to do with libGDX. With other libraries, it's a complete waste of time. LibGDX has everything needed: elastic interpolator, Box2D for physics simulation, Bezier class...I was not able to use Accelerated Surface
I understand. I wrote:It's something to do with libGDX. With other libraries, it's a complete waste of time. LibGDX has everything needed: elastic interpolator, Box2D for physics simulation, Bezier class...
just to say:I was not able to use Accelerated Surface