diff --git a/src/main/java/PingPong/Ball.java b/src/main/java/PingPong/Ball.java index bbc7809..6ccf4d9 100644 --- a/src/main/java/PingPong/Ball.java +++ b/src/main/java/PingPong/Ball.java @@ -44,7 +44,11 @@ Random random; y += yVelocity; } public void draw(Graphics g){ - g.setColor(Color.red); + Color(g); g.fillOval(x, y, width, height); } + + private static void Color(Graphics g) { + g.setColor(Color.red); + } }