kurumkan
kurumkan

Reputation: 2725

How to draw bottom half of circle drawArc Java

How does one draw the bottom half of a circle with drawArc in Java?

    g.drawArc(0,0,300,300, 0,-180); //this doesn't work

Upvotes: 0

Views: 2388

Answers (1)

Andrew Williamson
Andrew Williamson

Reputation: 8671

Make sure the starting direction is rotated as well:

g.drawArc(0, 0, 300, 300, 180, -180);

Upvotes: 2

Related Questions