clear board before drawing
This commit is contained in:
parent
8333df9474
commit
75a27da34f
1 changed files with 1 additions and 0 deletions
|
@ -50,6 +50,7 @@ pub fn start() {
|
|||
Some(date) if (Date::now() - date) < 250. => (),
|
||||
_ => {
|
||||
timestamp = Some(Date::now());
|
||||
context.clear_rect(0., 0., canvas.width() as f64, canvas.height() as f64);
|
||||
context.begin_path();
|
||||
let iter = CircleShapes::new(modulo, factor, Circle {center: Point {x: 400.0, y: 400.0}, radius: 400.0});
|
||||
for shape in iter {
|
||||
|
|
Loading…
Reference in a new issue