mirror of
https://github.com/CrispyPin/julia-fractal-renderer.git
synced 2024-11-13 22:20:26 +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)]
|
#[derive(Serialize, Deserialize)]
|
||||||
struct JuliaGUI {
|
struct JuliaGUI {
|
||||||
color: (u8, u8, u8),
|
color: (u8, u8, u8),
|
||||||
|
settings: RenderOptions,
|
||||||
|
export_res_power: u8,
|
||||||
|
export_max_iter: u16,
|
||||||
|
preview_point: bool,
|
||||||
#[serde(skip)]
|
#[serde(skip)]
|
||||||
preview: Option<TextureHandle>,
|
preview: Option<TextureHandle>,
|
||||||
settings: RenderOptions,
|
|
||||||
#[serde(skip)]
|
#[serde(skip)]
|
||||||
preview_render_ms: f64,
|
preview_render_ms: f64,
|
||||||
#[serde(skip)]
|
#[serde(skip)]
|
||||||
export_render_ms: Option<f64>,
|
export_render_ms: Option<f64>,
|
||||||
export_res_power: u8,
|
|
||||||
export_max_iter: u16,
|
|
||||||
#[serde(skip)]
|
#[serde(skip)]
|
||||||
export_path: PathBuf,
|
export_path: PathBuf,
|
||||||
#[serde(skip)]
|
#[serde(skip)]
|
||||||
settings_changed: bool,
|
settings_changed: bool,
|
||||||
preview_point: bool,
|
|
||||||
#[serde(skip)]
|
#[serde(skip)]
|
||||||
render_thread_handle: Option<JoinHandle<()>>,
|
render_thread_handle: Option<JoinHandle<()>>,
|
||||||
#[serde(skip)]
|
#[serde(skip)]
|
||||||
|
@ -257,6 +257,10 @@ impl eframe::App for JuliaGUI {
|
||||||
self.color = (5, 2, 11);
|
self.color = (5, 2, 11);
|
||||||
self.settings_changed = true;
|
self.settings_changed = true;
|
||||||
}
|
}
|
||||||
|
if ui.button("yellow").clicked() {
|
||||||
|
self.color = (9, 6, 1);
|
||||||
|
self.settings_changed = true;
|
||||||
|
}
|
||||||
if ui.button("randomise").clicked() {
|
if ui.button("randomise").clicked() {
|
||||||
self.color = (
|
self.color = (
|
||||||
rand::random::<u8>() & 15,
|
rand::random::<u8>() & 15,
|
||||||
|
|
Loading…
Reference in a new issue