From 0b1c16c12468dcc22a964b036339b87508d2e44c Mon Sep 17 00:00:00 2001 From: wisplite Date: Wed, 10 Sep 2025 14:16:40 -0500 Subject: [PATCH] change unconnected nodes to nicer color --- script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script.js b/script.js index 9442e17..4d451c4 100644 --- a/script.js +++ b/script.js @@ -202,8 +202,8 @@ function quickPacketRaf(startNode, packetInfo, fromNode, opts = {}) { if (document.getElementById('showTTL').checked) { if (ttl < 0) { - edgeUpdateCache.push({id: `${from}->${nodeId}`, color: {color: 'white', highlight: 'white'}}); - edgeUpdateCache.push({id: `${nodeId}->${from}`, color: {color: 'white', highlight: 'white'}}) + edgeUpdateCache.push({id: `${from}->${nodeId}`, color: {color: '#878787', highlight: '#878787'}}); + edgeUpdateCache.push({id: `${nodeId}->${from}`, color: {color: '#878787', highlight: '#878787'}}) } else { edgeUpdateCache.push({id: `${from}->${nodeId}`, color: {color: smoothColorTransition('#eb4034', '#40eb34', 0, TTL, ttl+1), highlight: smoothColorTransition('#eb4034', '#40eb34', 0, TTL, ttl)}}) edgeUpdateCache.push({id: `${nodeId}->${from}`, color: {color: smoothColorTransition('#eb4034', '#40eb34', 0, TTL, ttl+1), highlight: smoothColorTransition('#eb4034', '#40eb34', 0, TTL, ttl)}}) @@ -215,7 +215,7 @@ function quickPacketRaf(startNode, packetInfo, fromNode, opts = {}) { if (document.getElementById('showTTL').checked) { if (ttl < 0) { - nodeUpdateCache.push({id: nodeId, color: {background: 'white'}}) + nodeUpdateCache.push({id: nodeId, color: {background: '#878787'}}) } else { nodeUpdateCache.push({id: nodeId, color: {background: smoothColorTransition('#eb4034', '#40eb34', 0, TTL, ttl)}}) }