<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://blutwald.de/index.php?action=history&amp;feed=atom&amp;title=Flood_Mandelbrot_Mandelbrot_Calculator</id>
	<title>Flood Mandelbrot Mandelbrot Calculator - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://blutwald.de/index.php?action=history&amp;feed=atom&amp;title=Flood_Mandelbrot_Mandelbrot_Calculator"/>
	<link rel="alternate" type="text/html" href="https://blutwald.de/index.php?title=Flood_Mandelbrot_Mandelbrot_Calculator&amp;action=history"/>
	<updated>2026-04-17T18:31:54Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Earthdawn-Wiki.v2</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://blutwald.de/index.php?title=Flood_Mandelbrot_Mandelbrot_Calculator&amp;diff=1903&amp;oldid=prev</id>
		<title>Root: Die Seite wurde neu angelegt: „{Java2HtmlPlugin   public class MandelbrotCalculator {  public int width; public int height; public int[ fractalPixels; public double[] zr; public double[] zi; public int[] iterationPixels;   public int iteration;   public Complex o = new Complex(); public Complex d = new Complex();  public synchronized void initFractalParameters() { o=new Complex(2,2); d…“</title>
		<link rel="alternate" type="text/html" href="https://blutwald.de/index.php?title=Flood_Mandelbrot_Mandelbrot_Calculator&amp;diff=1903&amp;oldid=prev"/>
		<updated>2024-10-22T18:35:55Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „&lt;a href=&quot;/index.php?title=Java2Html_Plugin_Public_Class_Mandelbrot_Calculator_Public_Int_Width_Public_Int_Height_Public_Int&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Java2Html Plugin Public Class Mandelbrot Calculator Public Int Width Public Int Height Public Int (Seite nicht vorhanden)&quot;&gt;{Java2HtmlPlugin   public class MandelbrotCalculator {  public int width; public int height; public int[&lt;/a&gt; fractalPixels; public double[] zr; public double[] zi; public int[] iterationPixels;   public int iteration;   public Complex o = new Complex(); public Complex d = new Complex();  public synchronized void initFractalParameters() { o=new Complex(2,2); d…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Java2Html Plugin Public Class Mandelbrot Calculator Public Int Width Public Int Height Public Int|{Java2HtmlPlugin &lt;br /&gt;
&lt;br /&gt;
public class MandelbrotCalculator {&lt;br /&gt;
&lt;br /&gt;
public int width;&lt;br /&gt;
public int height;&lt;br /&gt;
public int[]] fractalPixels;&lt;br /&gt;
public double[] zr;&lt;br /&gt;
public double[] zi;&lt;br /&gt;
public int[] iterationPixels;  &lt;br /&gt;
public int iteration;  &lt;br /&gt;
public Complex o = new Complex();&lt;br /&gt;
public Complex d = new Complex();&lt;br /&gt;
&lt;br /&gt;
public synchronized void initFractalParameters() {&lt;br /&gt;
o=new Complex(2,2);&lt;br /&gt;
d=new Complex(4,4);    &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public synchronized void calculateOneIteration() {&lt;br /&gt;
double cr;&lt;br /&gt;
double ci;&lt;br /&gt;
double ab;&lt;br /&gt;
double z1r;&lt;br /&gt;
double z1i;&lt;br /&gt;
double zr2;&lt;br /&gt;
double zi2;    &lt;br /&gt;
double boundary = 1e4;&lt;br /&gt;
iteration++;&lt;br /&gt;
for (int x = 0; x &amp;lt; width; x++) {&lt;br /&gt;
for (int y = 0; y &amp;lt; height; y++) {&lt;br /&gt;
int i = x+y*width;&lt;br /&gt;
cr=x*d.r/width-o.r;&lt;br /&gt;
ci=o.i-y*d.i/height;&lt;br /&gt;
zr2=zr[[I|i]]*zr[[I|i]];&lt;br /&gt;
zi2=zi[[I|i]]*zi[[I|i]];&lt;br /&gt;
ab=zr2+zi2;&lt;br /&gt;
if (ab&amp;lt;boundary) {&lt;br /&gt;
z1r=zr2-zi2+cr;&lt;br /&gt;
z1i=2*zr[[I|i]]*zi[[I|i]]+ci;&lt;br /&gt;
zr[[I|i]]=z1r;&lt;br /&gt;
zi[[I|i]]=z1i;&lt;br /&gt;
} else {&lt;br /&gt;
if (iterationPixels[[I|i]]==0) {&lt;br /&gt;
iterationPixels[[I|i]]=iteration;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
Polar po = new Polar();&lt;br /&gt;
for (int x = 0; x &amp;lt; width; x++) {&lt;br /&gt;
for (int y = 0; y &amp;lt; height; y++) {&lt;br /&gt;
int i = x+y*width;&lt;br /&gt;
if (iterationPixels[[I|i]]==0) {&lt;br /&gt;
po.setComplex(zr[[I|i]],zi[[I|i]]);&lt;br /&gt;
fractalPixels[[I|i]]=Hsi2Rgb(po.w,1,(Math.PI+0.7F)*po.r);&lt;br /&gt;
} else {&lt;br /&gt;
double f = ((double)iterationPixels[[I|i]])/((double)iteration);&lt;br /&gt;
fractalPixels[[I|i]]=Color.HSBtoRGB(0F,1F,(float)f);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public void setDimensions(int pWidth, int pHeight) {&lt;br /&gt;
width = pWidth;&lt;br /&gt;
height = pHeight;&lt;br /&gt;
int size = width * height;&lt;br /&gt;
fractalPixels = new int[[Size|size]];    &lt;br /&gt;
zr = new double[[Size|size]];    &lt;br /&gt;
zi = new double[[Size|size]];&lt;br /&gt;
iterationPixels = new int[[Size|size]];        &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public static int rgbToInt(int r, int g, int b) {&lt;br /&gt;
return ((255 &amp;amp; 0xFF) &amp;lt;&amp;lt; 24) | ((r &amp;amp; 0xFF) &amp;lt;&amp;lt; 16) | ((g &amp;amp; 0xFF) &amp;lt;&amp;lt; 8) | ((b &amp;amp; 0xFF) &amp;lt;&amp;lt; 0);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public synchronized void zoom(Complex center, double zoomFactor) {&lt;br /&gt;
d=new Complex(d.r/zoomFactor,d.i/zoomFactor);&lt;br /&gt;
o=new Complex(-center.r+d.r/2,center.i+d.i/2);&lt;br /&gt;
for (int x = 0; x &amp;lt; width; x++) {&lt;br /&gt;
for (int y = 0; y &amp;lt; height; y++) {&lt;br /&gt;
int i = x+y*width;&lt;br /&gt;
zr[[I|i]]=x*d.r/width-o.r;&lt;br /&gt;
zi[[I|i]]=o.i-y*d.i/height;&lt;br /&gt;
iterationPixels[[I|i]]=0;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
iteration=0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public void zoom(Point point, double zoomFactor) {&lt;br /&gt;
zoom(toGraphCoord(point),zoomFactor);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
private Complex toGraphCoord(Point point) {&lt;br /&gt;
return new Complex(point.x*d.r/width-o.r,o.i-point.y*d.i/height);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public int Hsi2Rgb(double H, double S, double I) {&lt;br /&gt;
return Color.HSBtoRGB((float)H, (float)S, Math.abs((float)Math.sin(1/I)));&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
}]&lt;/div&gt;</summary>
		<author><name>Root</name></author>
	</entry>
</feed>