From: Not Zed Date: Sat, 25 Jan 2020 12:14:40 +0000 (+1030) Subject: Fixed the rotation option. X-Git-Url: https://code.zedzone.au/cvs?a=commitdiff_plain;h=e7ea25b0b67f8c19479b05f268cf865cecd06384;p=zcl Fixed the rotation option. Added a couple more targets. --- diff --git a/src/notzed.zcl.fxdemo/classes/fxdemo/fract/Mandelbrot.java b/src/notzed.zcl.fxdemo/classes/fxdemo/fract/Mandelbrot.java index f5bd01c..47fc224 100644 --- a/src/notzed.zcl.fxdemo/classes/fxdemo/fract/Mandelbrot.java +++ b/src/notzed.zcl.fxdemo/classes/fxdemo/fract/Mandelbrot.java @@ -87,7 +87,12 @@ public class Mandelbrot extends Application { new Target("jewel", -0.7746806106269039, -0.1374168856037867, 30), new Target("starfish", -0.812223315621338, -0.185453926110785, 10), new Target("spirals", -0.761574, -0.0847596, 12), - new Target("spikes", -1.62917, -0.0203968, 16),}; + new Target("spikes", -1.62917, -0.0203968, 16), + // more from here: http://www.cuug.ab.ca/dewara/mandelbrot/images.html + new Target("spew", -1.315180982097868, 0.073481649996795, 32), + new Target("blobs", -0.04524074130409, 0.9868162207157838, 32), + new Target("storm", 0.452721018749286, 0.39649427698014, 32) + }; Target target = targets[0]; boolean isdouble = true; @@ -228,7 +233,7 @@ public class Mandelbrot extends Application { @Override protected void interpolate(double frac) { - arg = Math.toRadians(frac * delta); + arg = Math.toRadians(frac * 360 * Math.signum(delta)); } }; spin.setCycleCount(Timeline.INDEFINITE); diff --git a/src/notzed.zcl.fxdemo/classes/fxdemo/fract/usage.txt b/src/notzed.zcl.fxdemo/classes/fxdemo/fract/usage.txt index 0b363af..4844564 100644 --- a/src/notzed.zcl.fxdemo/classes/fxdemo/fract/usage.txt +++ b/src/notzed.zcl.fxdemo/classes/fxdemo/fract/usage.txt @@ -13,6 +13,7 @@ Usage: mandelbrot [args] Set the centre zoom target point. list will list some predefined locations from http://paulbourke.net/fractals/mandelbrot/ + http://www.cuug.ab.ca/dewara/mandelbrot/images.html --a=alpha [0.005] Set zoom alpha parameter. Loosly the maximum outer zoom, @@ -21,7 +22,7 @@ Usage: mandelbrot [args] --b=beta [target dependent] Set the maximum inner zoom. This is an inverse exponential and the maximum value depends on the precision. For float the - maximum is about 12, for double it is more than 30. + maximum is about 12, for double it is about 32. --c=gamma [80] Set the iteration scaling rate. This will the precision,