File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 11image_width = 1000
22image_height = 1000
3- frames = 1
4- export = " colour "
3+ rotate = 0
4+ approximation_order = 0
55glitch_tolerance = 0.001
6+ frames = 1
7+ frame_offset = 0
68zoom_scale = 2.0
9+ display_glitches = false
710auto_adjust_iterations = true
8- approximation_order = 64
9- frame_offset = 0
1011probe_sampling = 3
11- remove_centre = true
12+ remove_centre = true
13+ export = " colour"
Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments