@@ -0,0 +1,1888 @@
+/*%0A    Copyright (C) 2007  Paul Richards.%0A%0A    This program is free software: you can redistribute it and/or modify%0A    it under the terms of the GNU General Public License as published by%0A    the Free Software Foundation, either version 3 of the License, or%0A    (at your option) any later version.%0A%0A    This program is distributed in the hope that it will be useful,%0A    but WITHOUT ANY WARRANTY; without even the implied warranty of%0A    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A    GNU General Public License for more details.%0A%0A    You should have received a copy of the GNU General Public License%0A    along with this program.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A*/%0A%0Apackage fractals;%0A%0Apublic class JuliaSet implements TileProvider%3CIntegerTile%3E%0A%7B%0A    private final double cReal;%0A    private final double cImag;%0A    %0A    public JuliaSet(double real, double imag)%0A    %7B%0A        this.cReal = real;%0A        this.cImag = imag;%0A    %7D%0A    %0A    public IntegerTile getTile(TilePosition position)%0A    %7B%0A        IntegerTile tile = new IntegerTile(position);%0A        for (int iy = position.getMinY(); iy %3C= position.getMaxY(); iy++) %7B%0A            for (int ix = position.getMinX(); ix %3C= position.getMaxX(); ix++) %7B%0A                final double r = ix * position.relativeScale() / 800;%0A                final double i = iy * position.relativeScale() / 800;%0A                int v = iterateUntilEscapes(r, i);%0A                tile.setValue(ix, iy, v);%0A            %7D%0A        %7D%0A        return tile;%0A    %7D%0A%0A    private int iterateUntilEscapes(double zR, double zI)%0A    %7B%0A        int v;%0A        for (v = 0; v %3C 2000 && (zR*zR + zI*zI) %3C 20; v++) %7B%0A            // z =%3E z%5E2 + c%0A            double zRn = zR*zR - zI*zI + cReal;%0A            double zIn = 2*zR*zI + cImag;%0A            zR = zRn;%0A            zI = zIn;%0A        %7D%0A        if (v == 2000) v = 0;%0A        return v;%0A    %7D%0A%7D%0A

Adding missing file.