From 2279abf86afc9f74e1aa03d8bc926922e8afec22 Mon Sep 17 00:00:00 2001 From: Justin Senn Date: Mon, 6 Feb 2023 16:40:26 +0100 Subject: [PATCH] refactoring: --- src/main/java/Snake/SnakeView.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/Snake/SnakeView.java b/src/main/java/Snake/SnakeView.java index 419d924..814b254 100644 --- a/src/main/java/Snake/SnakeView.java +++ b/src/main/java/Snake/SnakeView.java @@ -35,10 +35,7 @@ public class SnakeView implements Drawable{ g.fillOval((int)positions.get(0).getX(), (int)positions.get(0).getY(), cellSize, cellSize); - int r = 144; - int g1 = 238; - int b = 144; - g.setColor(new Color(r, g1, b)); + g.setColor(new Color(144, 238, 144)); for(int i = 1; i < positions.size(); ++i) { // g.fillRect((int)positions.get(i).getX(),