summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/game_of_life/src/main.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/game_of_life/src/main.rs b/examples/game_of_life/src/main.rs
index d9ff5a14..ef040263 100644
--- a/examples/game_of_life/src/main.rs
+++ b/examples/game_of_life/src/main.rs
@@ -339,13 +339,9 @@ mod grid {
let cell =
Cell::at(self.project(cursor_position, frame.size()));
- let interaction = Path::rectangle(
+ frame.fill_rectangle(
Point::new(cell.j as f32, cell.i as f32),
Size::UNIT,
- );
-
- frame.fill(
- &interaction,
Color {
a: 0.5,
..Color::BLACK