How to make a curved slider progress bar?

Another image to improve understanding