From 132ac3ff248bad1e993516702ec0afc7ed172546 Mon Sep 17 00:00:00 2001 From: "Ian Clarke (aider)" Date: Sat, 30 Nov 2024 10:51:44 -0500 Subject: [PATCH] feat: Limit node colors to 3 and use visually distinct color palette --- .../static/html/eventual_convergence_viz.html | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/hugo-site/static/html/eventual_convergence_viz.html b/hugo-site/static/html/eventual_convergence_viz.html index 42996698..1e27afdb 100644 --- a/hugo-site/static/html/eventual_convergence_viz.html +++ b/hugo-site/static/html/eventual_convergence_viz.html @@ -10,7 +10,9 @@ const animationQueue = new Map(); // Track ongoing animations per node let lastColorIndex = -1; const globalColors = []; // Track colors in order of introduction to network - const MAX_COLORS = 6; + const MAX_COLORS = 3; // Only show 3 most recent colors per node + // Palette of 6 visually distinct colors that work well together + const COLOR_PALETTE = ["#FF6B6B", "#4ECDC4", "#45B7D1", "#96CEB4", "#FFEEAD", "#D4A5A5"];