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=17d2cba65d115452eddebde8af58ca78abf8244d;hp=5ff3bfdcca759e75e82b49d01473b5b1e1a8becb;hb=8ef719db477953b45babc141ed63b6a76244ba90;hpb=1fd0773e945dc21967104c420ce7829d3679e5ff 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 5ff3bfd..17d2cba 100755 --- a/src/main/java/eu/svjatoslav/sixth/e3d/examples/RandomPolygonsDemo.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/examples/RandomPolygonsDemo.java @@ -1,5 +1,5 @@ /* - * Sixth 3D engine demos. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * Sixth 3D engine demos. Copyright ©2012-2020, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu * * 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 @@ -45,7 +45,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; } @@ -61,8 +61,8 @@ public class RandomPolygonsDemo { final ViewFrame viewFrame = new ViewFrame(); - final ShapeCollection shapeCollection = viewFrame.getView() - .getContext().getRootShapeCollection(); + final ShapeCollection shapeCollection = viewFrame.getViewPanel() + .getRootShapeCollection(); // add grid final LineAppearance appearance = new LineAppearance(5, new Color(100,