Online Circular Timer

Hi,

I’m looking to code a timer for a study that will be online. The timer should be like a ticking clock in a circle that is “full” at the start of the routine, and “empty” when the routine time is finished (e.g., after 60 seconds). I’ve successfully coded something similar with a rectangle where I adjust the size and location each frame based on the time in the routine. However, I’m now looking for a circular shaped timer which I haven’t found a way to code efficiently. The timer should look something like this across time:

Does anyone have any ideas on how to implement something like this?

Thanks in advance for any help or ideas!

There are some examples in this thread that should work for making a pie chart shape, and then you just need to update the angle.

1 Like