MCPcopy Index your code
hub / github.com/codeaashu/claude-code / toRGBColor

Function toRGBColor

src/components/Spinner/utils.ts:27–29  ·  view source on GitHub ↗
(color: RGBColorType)

Source from the content-addressed store, hash-verified

25
26// Convert RGB object to rgb() color string for Text component
27export function toRGBColor(color: RGBColorType): RGBColorString {
28 return `rgb(${color.r},${color.g},${color.b})`
29}
30
31// HSL hue (0-360) to RGB, using voice-mode waveform parameters (s=0.7, l=0.6).
32export function hueToRgb(hue: number): RGBColorType {

Callers 7

GlimmerMessageFunction · 0.85
SpinnerGlyphFunction · 0.85
FlashingCharFunction · 0.85
SpinnerAnimationRowFunction · 0.85
AnimatedAsteriskFunction · 0.85
ProcessingShimmerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected