I want to create some sort of progress circle like this:
(I made these in paint, not in java)
25%
75%
How would i do this with fillArc()?
What i already have:
I draw the background:
I can fill half the oval:g.drawOval(0, 0, 100, 100);
g.fillArc(0, 0, 100, 100, 0, -180);
How fillArc works:
fillArc(x, y, width, height, startAngle, angle);
- 3 o'clock is 0°
- positive values go clockwise, negative values go counter clockwise
Thanks, Dunnkers.