MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / shimmerColor

Function shimmerColor

src/ui/shimmer-worker.ts:48–55  ·  view source on GitHub ↗
(frame: number)

Source from the content-addressed store, hash-verified

46}
47
48function shimmerColor(frame: number): string {
49 if (!COLORS) return '';
50 const t = (Math.sin(frame * 2 * Math.PI / 13) + 1) / 2;
51 const r = lerp(160, 251, t);
52 const g = lerp(100, 191, t);
53 const b = lerp(9, 36, t);
54 return `\x1b[38;2;${r};${g};${b}m${BOLD}`;
55}
56
57function formatNumber(n: number): string {
58 return n.toLocaleString();

Callers 1

renderFunction · 0.85

Calls 1

lerpFunction · 0.85

Tested by

no test coverage detected