Hi I'm trying to draw a soccer field onto my background. I have everything except one thing, the curved line at the top of each 18yd box. If you don't know what I mean, just google soccer field dimensions. It is about a quarter of a circle and I'm not sure how to draw it. I thought maybe trying drawPolygon but wasn't sure so I thought I'd ask first. This is some of my code in my myWorld() constructor. The world is set at (600, 400, 1). Thanks for any help
1 2 3 4 5 6 7 | background.setColor(Color.WHITE); background.drawLine(getWidth()/ 2 , 0 , getWidth()/ 2 , getHeight()); background.drawOval(getWidth()/ 2 -getWidth()/ 10 , getHeight()/ 2 -getHeight()/ 6 , 120 , 120 ); background.drawRect( 500 , 100 , 100 , 200 ); background.drawRect(- 1 , 100 , 101 , 200 ); background.drawRect( 566 , 150 , 34 , 100 ); background.drawRect(- 1 , 150 , 34 , 100 ); |