diff --git a/docs/simple_electronics.wasm b/docs/simple_electronics.wasm index 2be3c12..864654d 100755 Binary files a/docs/simple_electronics.wasm and b/docs/simple_electronics.wasm differ diff --git a/src/systems/draw_systems.rs b/src/systems/draw_systems.rs index b3078ca..1270f09 100644 --- a/src/systems/draw_systems.rs +++ b/src/systems/draw_systems.rs @@ -122,7 +122,7 @@ where sp.x, ep.y, 5.0, - if wire.input_state && delta >= vert_dist.abs() / total_dist { + if delta >= vert_dist.abs() / total_dist { new_col } else { old_col @@ -199,7 +199,7 @@ where ep.x, sp.y, 5.0, - if delta >= 1.0 { new_col } else { old_col }, + if delta >= 0.9 { new_col } else { old_col }, ); } else { draw_line(