MCPcopy Create free account
hub / github.com/Noumena-Network/code / getRainbowColor

Function getRainbowColor

src/utils/thinking.ts:82–88  ·  view source on GitHub ↗
(
  charIndex: number,
  shimmer: boolean = false,
)

Source from the content-addressed store, hash-verified

80]
81
82export function getRainbowColor(
83 charIndex: number,
84 shimmer: boolean = false,
85): keyof Theme {
86 const colors = shimmer ? RAINBOW_SHIMMER_COLORS : RAINBOW_COLORS
87 return colors[charIndex % colors.length]!
88}
89
90// TODO(inigo): add support for probing unknown models via API error detection
91// Provider-aware thinking support detection (aligns with modelSupportsISP in betas.ts)

Callers 5

HighlightedThinkingTextFunction · 0.85
buildRainbowHighlightsFunction · 0.85
RainbowTextFunction · 0.85
HatchingFunction · 0.85
_tempFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected