Skip to content

Commit

Permalink
change some more stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-tennert committed Jun 16, 2024
1 parent af8e23a commit 0b9c1e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl FlowerMode {

fn max_amount(self) -> i32 {
match self {
FlowerMode::Seed => 4000,
FlowerMode::Seed => 6000,
FlowerMode::Petal => 40
}
}
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 0b9c1e6

Please sign in to comment.