From b4b82a3cc53e0c73b58e195fb58d609e7d7c04fa Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Sat, 15 Jul 2023 14:35:15 +0200 Subject: [PATCH] add yellow preset --- src/main.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 2ad86de..0e71075 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,20 +39,20 @@ fn main() { #[derive(Serialize, Deserialize)] struct JuliaGUI { color: (u8, u8, u8), + settings: RenderOptions, + export_res_power: u8, + export_max_iter: u16, + preview_point: bool, #[serde(skip)] preview: Option, - settings: RenderOptions, #[serde(skip)] preview_render_ms: f64, #[serde(skip)] export_render_ms: Option, - export_res_power: u8, - export_max_iter: u16, #[serde(skip)] export_path: PathBuf, #[serde(skip)] settings_changed: bool, - preview_point: bool, #[serde(skip)] render_thread_handle: Option>, #[serde(skip)] @@ -257,6 +257,10 @@ impl eframe::App for JuliaGUI { self.color = (5, 2, 11); self.settings_changed = true; } + if ui.button("yellow").clicked() { + self.color = (9, 6, 1); + self.settings_changed = true; + } if ui.button("randomise").clicked() { self.color = ( rand::random::() & 15,