@@ -0,0 +1,1462 @@
+import mm.display.MainWindow;%0Aimport mm.structures.ColorField;%0Aimport mm.structures.ColorPixel;%0A%0Aimport java.awt.*;%0A%0Apublic class Main %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        ColorPixel%5B%5D colors = new ColorPixel%5B%5D%7B%0A                new ColorPixel(new Color(124, 7, 142)),%0A                new ColorPixel(new Color(236, 74, 72)),%0A                new ColorPixel(new Color(255, 252, 88)),%0A                new ColorPixel(new Color(31, 162, 209)),%0A//                new ColorPixel(new Color(128, 207, 12)),%0A//                new ColorPixel(new Color(71, 34, 69)),%0A//                new ColorPixel(new Color(1, 153, 138)),%0A//                new ColorPixel(new Color(206, 23, 54)),%0A//                new ColorPixel(new Color(247, 88, 48)),%0A//                new ColorPixel(new Color(12, 8, 65))%0A        %7D;%0A%0A        long start = System.nanoTime();%0A        ColorField cf = ColorField.GenerateField(100, colors);%0A        System.out.printf(%22generiranje polja: %25d%5Cn%22, System.nanoTime() - start);%0A%0A        MainWindow window = new MainWindow(cf);%0A%0A        long allStart = System.nanoTime();%0A        long iterations = 0;%0A        while(!cf.isAllSame()) %7B%0A            cf = cf.updateNeighbours();%0A            window.setField(cf);%0A            window.repaint();%0A            iterations++;%0A        %7D%0A        long end = System.nanoTime() - allStart;%0A        System.out.printf(%22St iteracij: %25d%5Cn%22, iterations);%0A        System.out.printf(%22Celoten cas: %25d%5Cn%22, end);%0A    %7D%0A%7D%0A

add Main class