mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-10-29 07:13:44 +08:00
High-density graphs washed out to a cyan-white blob: edges blend additively and the per-node boost rewarded luminance, so ~80k overlapping edges plus the white/yellow mid-tier stars saturated the center. Compensate by density so contrast stays roughly constant as the graph grows: - edges dim by ~1/sqrt(edgeCount) (they cause the blob) while nodes and bloom stay at full strength up to 25k nodes and only ease gently past that, so the bright-star look is preserved on moderate graphs; - the per-node glow is now colour-aware by channel dominance instead of luminance: blue hubs (high-degree) glow brightest, red leaves modestly, white/yellow least — matching the star-class meaning and giving the graph depth instead of a uniform white core. Add a Display menu (edge brightness / node glow / bloom multipliers, 0–3×, persisted) layered on top of the adaptive defaults, so the look is tunable live. A selection is never density-scaled and stays bright against the dimmed rest. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>