I apologize about the viewing format. I haven’t been able to figure out all the posting details quite yet.
If you Have and recommendations in regards to the formating too, please don’t hesitate to tell me.
I’m Drawing a background for a hangman game. I’m working exclusively with visuals.
Eclipse is telling I can only use int methods in the Arc method.
final int XMID = 400;
final int YMID = 300;
//small cirlce diameter
final int SMCD = 60;
final double BGCD = SMCD * 2.5;
// ^^^^^^^^^^ problem
//wave base
g.fillRect(0, 480, 800, 20);
//first big circle (ARC)
g.fillArc(XMID-(SMCD/2) , 480-SMCD , BGCD, BGCD, 0, 130);
// ^^^^^^^^ problem
//first small circle
g.setColor(Color.CYAN);
g.fillOval(XMID-(SMCD/2),480-SMCD , SMCD, SMCD);
// ^^^^^^ problem
You’ll need to cast BGCD to an int,
i.e.
(int)BGCDbecause the drawing methods don’t work with doubles or floats.Feel free to post the actual error message next time, it help you get a quick response