X-Git-Url: http://www2.svjatoslav.eu/gitweb/?p=sixth-3d-demos.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Fexamples%2Flife%2FCell.java;h=fb78e4b2993c09286205a85ea6d228f5ec3eb487;hp=18f2d57ace15c5da5f6a3a503af730e304f8c855;hb=fd099c489d7f4df2624c07d1d3ba24f658b147a7;hpb=f5b086a876fc92f358032a12ffbecf854745bbaa diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/examples/life/Cell.java b/src/main/java/eu/svjatoslav/sixth/e3d/examples/life/Cell.java index 18f2d57..fb78e4b 100755 --- a/src/main/java/eu/svjatoslav/sixth/e3d/examples/life/Cell.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/examples/life/Cell.java @@ -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);