Code refactoring
[sixth-3d-demos.git] / src / main / java / eu / svjatoslav / sixth / e3d / examples / life / Cell.java
index 18f2d57..fb78e4b 100755 (executable)
@@ -27,11 +27,11 @@ class Cell extends AbstractCompositeShape implements
     /**
      * Color of the inactive cell (R, G, B, A)
      */
-    private static final Color INACTIVE_COLOR = new Color("55F5");
+    private static final Color INACTIVE_COLOR = new Color("55F8");
     /**
      * Color of the inactive cell (R, G, B, A) while mouse is over it.
      */
-    private static final Color INACTIVE_COLOR_MOUSE_OVER = new Color("77F7");
+    private static final Color INACTIVE_COLOR_MOUSE_OVER = new Color("77F8");
     /**
      * A placeholder variable to help in next generation computation. Indicates
      * whether cell is going to survive within next generation.
@@ -56,7 +56,7 @@ class Cell extends AbstractCompositeShape implements
     }
 
     private void createCellShape() {
-        final double halfSize = SIZE / 2;
+        final double halfSize = SIZE / 2f;
 
         // define 4 points corresponding to cell borders
         final Point3D p1 = new Point3D(-halfSize, 0, -halfSize);