Results 1 to 4 of 4
Thread: Need help with fillArc()
- 02-02-2011, 02:44 PM #1
Member
- Join Date
- Feb 2011
- Posts
- 2
- Rep Power
- 0
Need help with fillArc()
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:Java Code:g.drawOval(0, 0, 100, 100);
Java Code: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.
- 02-02-2011, 03:25 PM #2
Crossposted: Need help with fillArc() - Java Programming Forums
How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 02-02-2011, 03:43 PM #3
Member
- Join Date
- Feb 2011
- Posts
- 2
- Rep Power
- 0
As stated above, i crossposted this thread.
I refer you to: Need help with fillArc() - Java Programming Forums
Sorry for the crosspost.
-
And it's been solved in yet another cross-post but the OP hasn't mentioned that here yet. What's with that?


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks