How do I create a pie chart countdown timer?

Hi everybody,

While programming my app, I’ve recently run in to the issue of needing a gui countdown timer like this:

Screen+Shot+2012-09-12+at+3.09.44+PM.png

Or this:

l4chvSb.png

Do you guys have any ideas? I know how to make one with text, but I’m not sure if there’s a way to do it with a pie/donut like these.

See this thread for some info on this topic:

http://forums.coronalabs.com/topic/53020-how-can-i-make-a-pie-timer-i-need-to-be-able-to-draw-a-circular-arc-with-dynamically-changing-angles/

See this thread for some info on this topic:

http://forums.coronalabs.com/topic/53020-how-can-i-make-a-pie-timer-i-need-to-be-able-to-draw-a-circular-arc-with-dynamically-changing-angles/