function drawLine(line, canvas, context, iterMax, algorithm) {
let Cr_min = -2.0;
let Cr_max = 1.0;
+ try {
+ Cr_min = gPref.getCharPref("mandelbrot.last_image.Cr_min");
+ Cr_max = gPref.getCharPref("mandelbrot.last_image.Cr_max");
+ }
+ catch (e) { }
let Cr_scale = Cr_max - Cr_min;
let Ci_min = -1.5;
let Ci_max = 1.5;
+ try {
+ Cr_min = gPref.getCharPref("mandelbrot.last_image.Ci_min");
+ Cr_max = gPref.getCharPref("mandelbrot.last_image.Ci_max");
+ }
+ catch (e) { }
let Ci_scale = Ci_max - Ci_min;
let pixels = [];
gColorPalette = getColorPalette(aPaletteID);
}
+function imgSettings() {
+ window.openDialog("chrome://mandelbrot/content/image-settings.xul");
+}
+
function updateDebugMenu() {
var jitMenuItem = document.getElementById("jitEnabled");
jitMenuItem.setAttribute("checked", gPref.getBoolPref("javascript.options.jit.chrome"));
gPref.setCharPref("mandelbrot.use_algorithm", algoID);
}
-
/***** helper functions from external sources *****/
// function below is based on http://developer.mozilla.org/en/docs/Code_snippets:Canvas