Skip to content

Commit 2fec493

Browse files
committed
updated the default file to the correct values
1 parent 75af3c2 commit 2fec493

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

default.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
image_width = 1000
22
image_height = 1000
3-
frames = 1
4-
export = "colour"
3+
rotate = 0
4+
approximation_order = 0
55
glitch_tolerance = 0.001
6+
frames = 1
7+
frame_offset = 0
68
zoom_scale = 2.0
9+
display_glitches = false
710
auto_adjust_iterations = true
8-
approximation_order = 64
9-
frame_offset = 0
1011
probe_sampling = 3
11-
remove_centre = true
12+
remove_centre = true
13+
export = "colour"

src/renderer.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ impl FractalRenderer {
3838
let center_real = settings.get_str("real").unwrap_or(String::from("-0.75"));
3939
let center_imag = settings.get_str("imag").unwrap_or(String::from("0.0"));
4040
let approximation_order = settings.get_int("approximation_order").unwrap_or(0) as usize;
41-
let glitch_tolerance = settings.get_float("glitch_tolerance").unwrap_or(0.01);
41+
let glitch_tolerance = settings.get_float("glitch_tolerance").unwrap_or(0.001);
4242
let remaining_frames = settings.get_int("frames").unwrap_or(1) as usize;
4343
let frame_offset = settings.get_int("frame_offset").unwrap_or(0) as usize;
4444
let zoom_scale_factor = settings.get_float("zoom_scale").unwrap_or(2.0);
4545
let display_glitches = settings.get_bool("display_glitches").unwrap_or(false);
46-
let auto_adjust_iterations = settings.get_bool("auto_adjust_iterations").unwrap_or(false);
46+
let auto_adjust_iterations = settings.get_bool("auto_adjust_iterations").unwrap_or(true);
4747
let probe_sampling = settings.get_int("probe_sampling").unwrap_or(3) as usize;
4848
let remove_centre = settings.get_bool("remove_centre").unwrap_or(true);
4949
let data_type = match settings.get_str("export").unwrap_or(String::from("COLOUR")).to_ascii_uppercase().as_ref() {
@@ -72,6 +72,7 @@ impl FractalRenderer {
7272
probe_sampling);
7373
let render_indices = (0..(image_width * image_height)).collect::<Vec<usize>>();
7474

75+
// Change the zoom level to the correct one for the frame offset
7576
for _ in 0..frame_offset {
7677
zoom.mantissa /= zoom_scale_factor;
7778
zoom.reduce();

0 commit comments

Comments
 (0)