From 37f8edb5c186e8a5e0cbb141aca5d595506dfe4d Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Fri, 3 May 2024 15:06:16 +0200 Subject: [PATCH] add fill button --- uscope/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uscope/src/main.rs b/uscope/src/main.rs index e1a4c87..c20f6f7 100644 --- a/uscope/src/main.rs +++ b/uscope/src/main.rs @@ -58,6 +58,9 @@ impl eframe::App for UScope { ui.label("speed"); ui.add(Slider::new(&mut self.speed, 0..=5000)); ui.checkbox(&mut self.show_grid, "show grid"); + if ui.button("fill").clicked() { + self.dish.chunk.contents.fill([self.brush; CHUNK_SIZE]); + } ui.separator(); ui.heading("Cells");