MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / rgb

Function rgb

graph-ui/src/lib/density.test.ts:14–17  ·  view source on GitHub ↗
(hex: string)

Source from the content-addressed store, hash-verified

12
13/* Parse "#rrggbb" to 0..1 channels, matching how the renderer feeds colors. */
14function rgb(hex: string): [number, number, number] {
15 const n = parseInt(hex.slice(1), 16);
16 return [((n >> 16) & 0xff) / 255, ((n >> 8) & 0xff) / 255, (n & 0xff) / 255];
17}
18const glow = (hex: string) => nodeGlowBoost(...rgb(hex));
19
20describe("edgeIntensityScale", () => {

Callers 1

glowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected