Skip to content

Commit 3baf71e

Browse files
committed
added additional options for the export type string
1 parent 2fec493 commit 3baf71e

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

high.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
image_width = 1920
2+
image_height = 1080
3+
rotate = 0
4+
approximation_order = 32
5+
glitch_tolerance = 0.001
6+
frames = 9999
7+
frame_offset = 0
8+
zoom_scale = 2.0
9+
display_glitches = false
10+
auto_adjust_iterations = true
11+
probe_sampling = 3
12+
remove_centre = true
13+
export = "exr"

src/renderer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ impl FractalRenderer {
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() {
50-
"RAW" => DataType::RAW,
51-
"COLOUR" => DataType::COLOUR,
50+
"RAW" | "EXR" => DataType::RAW,
51+
"COLOUR" | "PNG" => DataType::COLOUR,
5252
"KFB" => DataType::KFB,
5353
"BOTH" => DataType::BOTH,
5454
_ => DataType::COLOUR

0 commit comments

Comments
 (0)