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%2FRandomPolygonsDemo.java;h=0d34265784f4c1a3edff4e70d3b0d4f5c16b4fe9;hp=75341484716936ada260a7ec2fe077a452e70fa9;hb=04220ddc40ea23ff3fa0d397d2c53db66f76952c;hpb=335758c2678788d95da705b28dbebe4ba206c103 diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/examples/RandomPolygonsDemo.java b/src/main/java/eu/svjatoslav/sixth/e3d/examples/RandomPolygonsDemo.java index 7534148..0d34265 100755 --- a/src/main/java/eu/svjatoslav/sixth/e3d/examples/RandomPolygonsDemo.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/examples/RandomPolygonsDemo.java @@ -1,10 +1,8 @@ /* - * Sixth 3D engine demos. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * Sixth 3D engine demos. Author: Svjatoslav Agejenko. + * This project is released under Creative Commons Zero (CC0) license. * - * This program is free software; you can redistribute it and/or - * modify it under the terms of version 3 of the GNU Lesser General Public License - * or later as published by the Free Software Foundation. - */ +*/ package eu.svjatoslav.sixth.e3d.examples; @@ -45,7 +43,7 @@ public class RandomPolygonsDemo { } /* I don't want very dark polygons, so ensure there is at least some - * brightness present. */ + * brightness present. */ private static double getColorChannelBrightness() { return Math.random() * 0.7 + 0.3f; } @@ -62,7 +60,7 @@ public class RandomPolygonsDemo { final ViewFrame viewFrame = new ViewFrame(); final ShapeCollection shapeCollection = viewFrame.getViewPanel() - .getContext().getRootShapeCollection(); + .getRootShapeCollection(); // add grid final LineAppearance appearance = new LineAppearance(5, new Color(100,