diff options
Diffstat (limited to 'src/jrummikub/view/impl/StonePainter.java')
-rw-r--r-- | src/jrummikub/view/impl/StonePainter.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/jrummikub/view/impl/StonePainter.java b/src/jrummikub/view/impl/StonePainter.java index 572ba76..e2dae24 100644 --- a/src/jrummikub/view/impl/StonePainter.java +++ b/src/jrummikub/view/impl/StonePainter.java @@ -71,24 +71,24 @@ class StonePainter { return new Color(r > 255 ? 255 : r, g > 255 ? 255 : g, b > 255 ? 255 : b); } - private static Color getColor(StoneColor color) { + public static Color getColor(StoneColor color) { switch (color) { case BLACK: - return new Color(0.15f, 0.15f, 0.15f); + return new Color(0.0f, 0.0f, 0.0f); case BLUE: return new Color(0.0f, 0.0f, 1.0f); case ORANGE: return new Color(1.0f, 0.4f, 0.0f); case RED: return new Color(0.9f, 0.0f, 0.25f); - case BROWN: - return new Color(0.5f, 0.25f, 0.0f); + case AQUA: + return new Color(0.0f, 0.85f, 0.75f); case GREEN: - return new Color(0.0f, 0.75f, 0.0f); + return new Color(0.0f, 0.65f, 0.0f); case VIOLET: return new Color(0.75f, 0.325f, 0.75f); - case WHITE: - return new Color(1.0f, 1.0f, 1.0f); + case GRAY: + return new Color(0.5f, 0.5f, 0.5f); } return null; |