From 0b9c1e6b48c80d6fb14cfb6be1e3f449e769a0b2 Mon Sep 17 00:00:00 2001 From: Jan Date: Sun, 16 Jun 2024 21:43:10 +0200 Subject: [PATCH] change some more stuff --- src/setup.rs | 3 +-- src/ui.rs | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/setup.rs b/src/setup.rs index 481dcb7..fb0e47d 100644 --- a/src/setup.rs +++ b/src/setup.rs @@ -6,8 +6,7 @@ pub struct SetupPlugin; impl Plugin for SetupPlugin { fn build(&self, app: &mut App) { app - .add_systems(Startup, spawn_camera) - .insert_resource(ClearColor(Color::hex("#263238").unwrap())); + .add_systems(Startup, spawn_camera); } } diff --git a/src/ui.rs b/src/ui.rs index bd329bd..f2ec097 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -39,7 +39,7 @@ impl FlowerMode { fn max_amount(self) -> i32 { match self { - FlowerMode::Seed => 4000, + FlowerMode::Seed => 6000, FlowerMode::Petal => 40 } } @@ -126,7 +126,7 @@ pub fn settings_ui( if ui.add(egui::Slider::new(&mut seed_settings.distance, 0.0..=mode.max_density()).text("Density")).changed() { changed = true } - if ui.add(egui::Slider::new(&mut seed_settings.radius, 0.0..=20.0).text("Size")).changed() { + if ui.add(egui::Slider::new(&mut seed_settings.radius, 0.0..=200.0).text("Size")).changed() { changed = true; } if ui.add(egui::Slider::new(&mut seed_settings.amount, 0..=mode.max_amount()).text("Amount")).changed() {