From bea5b0178f900d2b04e510fb6f344e36a1e63684 Mon Sep 17 00:00:00 2001 From: Mikail Khan Date: Mon, 5 Apr 2021 15:37:52 -0400 Subject: [PATCH] fixed some connection highlighting --- docs/simple_electronics.wasm | Bin 3389055 -> 3388967 bytes src/systems/draw_systems.rs | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/simple_electronics.wasm b/docs/simple_electronics.wasm index 2be3c12b0c735f15ace1a1db1e0621a3c35d1774..864654d5b9bf32e354e9e82429041e88e1cabef0 100755 GIT binary patch delta 855 zcmb`^yDvjg90zdc{%&uJR_k^9r1#dV_0}dtglG&Vi6B;lT<-)C5v#}*o1r<0f50Ll z24}EXq$VK}F-TZ!hT3fP^|+JmGJJmHH{Wx<`PXZ92q%}ilt10h>Sk7FBCAWrJv-;Q z0CkF)cWF%K{cZ~KixM*V^#-N=el3vELKESbH|<(TNCjO~ph=onM7!yk$S@2s8KX5O zd_-=tl13G>pOp7e&dJUNI_=r3Gw=8*au&DWgC8a7#d^?H%6^bo@1r;Q>#ODls8_Z! z9|!-CxjRBGnPtTOIIYV3X&Ia47Rh8DemhJNzOzDVokx?>H*5j-8CTW(87=sG$cH7m z`yTRm<#WiPDN+@d;YjWj2eZ`kkMYxr^$i9yw>Al6aDW0%a6usyK{2?&10~=EACy8F zltTqnf(m{JKoCL@h6q$aHAF!J9b!-ewNMB3&;W5rKqE9kGqgY}v_U&`KvHaNrW}1A D8Q=!n delta 920 zcmb`_J1j#{9LMpV`@gpj^x@U^w$#1Xqu#U?$In;n6Hd-`>GpKHq8BSV6BS*` z-mo&?oTOo~@+Qs8lHuV8J}NOkKNz88%&$qAYqpN_0jDSWdkJabLoH(Rj6o6cF-Q%<3Zd=M}Q7XcP!!P{0W;aDxY`pc-nx3qJ5e0BWHQ z>Y)J|AqXJ|g9;IdLK8GY3|c?~9SmrNHfV1v$ 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(