diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-05-31 03:02:31 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-05-31 03:02:31 +0200 |
commit | 25c6383c73de20ce7e6bc45af6faa255e8d94dc6 (patch) | |
tree | 2752e23d08191e4a568c66c507c9c630307d2112 /src/jrummikub/view/impl/StonePainter.java | |
parent | c004a07a4267f3320d23f3d1d2cf483cd56f40b7 (diff) | |
download | JRummikub-25c6383c73de20ce7e6bc45af6faa255e8d94dc6.tar JRummikub-25c6383c73de20ce7e6bc45af6faa255e8d94dc6.zip |
Allow setting stone colors to use
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@338 72836036-5685-4462-b002-a69064685172
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; |