How to animate a circle being drawn (same as preloader animation)

I want to show how a circle is being drawn, preferably programmed in LUA, so I can time it accordingly as needed (the main use would be 1 minute to complete the circle, but I might also use it for other time intervals).

A sprite animation (like it’s being used as preloader animations) would be not smooth enough for this.

This I found for Swift: https://www.raywenderlich.com/94302/implement-circular-image-loader-animation-cashapelayer

And I found some other sine / cosine explanations, but my mathematical understanding seems to lack a bit for this one :wink:

Thanks for any hints!

Greetings,

Nils

Jason Schroder has a solution he posted to his website:

http://www.jasonschroeder.com/2014/12/21/progress-ring-module-for-corona-sdk/

Maybe this can get you started.

Rob

Thanks a lot, that’s just what I was looking for (and even better)! :slight_smile:

Nils

Jason Schroder has a solution he posted to his website:

http://www.jasonschroeder.com/2014/12/21/progress-ring-module-for-corona-sdk/

Maybe this can get you started.

Rob

Thanks a lot, that’s just what I was looking for (and even better)! :slight_smile:

Nils