I've looking to draw an arc on a canvas in Jetpack Compose with a diagonally striped pattern like this picture:
I'm looking to use it as a progress bar, so it can be extended or shortened based on the percentage completed. I currently have a custom circular progress bar where I draw a circle on the canvas for the empty portion of the progress and then I draw an arc for completed progress. However, design wants to implement an overage state where, instead of a solid the color, the overage has this striped pattern.
Right now the workaround I have is just to draw a rectangle filled with stripes like this and then clip the corners, then putting a white circle in the middle to make it appear like a ring, then overlaying another progress bar on top and removing solid color as needed in reverse to reveal the stripes. However, this doesn't give me much freedom to work with the overage. Mainly the curved white gap becomes tough to accomplish, I've only been able to do a squared corner gap.
So I'm looking to create the arc with this striped pattern.



