I’m looking for a solution to draw a simple progress bar for a timer (I’m looking to make a pomodoro type of timer as a plug-in as a starter project to learn JUCE and c++.) I am looking to just have the starting point at 12 o’clock, then it draws the radians(?) around the circle until it completes the full circle. I would just like a second opinion on what is the best way to do this in JUCE, and in a audio plug-in.
I’ve hooked this up myself using sliders and progress bars in the GUI application template, but it would be helpful to get a second opinion on the fastest and most effective way to do this without un-necessary processing. (ive looked at methods using sine/cosine but i’m thinking it would be best to just use hard-coded coordinates and just draw from path point between path point at set intervals rather then running a timer that’s calling 60 frames per second and generating a new path and drawing to it, for minimum use of CPU)
i decided to include this simple example to show what I had in mind, it just needs to start at the 12 o clock position and fill out the circle as it progresses. its not crucial that it fills out smoothly as it would be fine if it divided the total time into 12-14 instead of advancing frame by frame as well.