mirror of
https://github.com/CrispyPin/julia-fractal-renderer.git
synced 2024-11-09 20:20:25 +01:00
add yellow preset
This commit is contained in:
parent
153d10ba7a
commit
b4b82a3cc5
1 changed files with 8 additions and 4 deletions
12
src/main.rs
12
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<TextureHandle>,
|
||||
settings: RenderOptions,
|
||||
#[serde(skip)]
|
||||
preview_render_ms: f64,
|
||||
#[serde(skip)]
|
||||
export_render_ms: Option<f64>,
|
||||
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<JoinHandle<()>>,
|
||||
#[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::<u8>() & 15,
|
||||
|
|
Loading…
Reference in a new issue