MCPcopy Create free account
hub / github.com/SamuelZ12/longcut / getTopicHSLColor

Function getTopicHSLColor

lib/utils.ts:111–114  ·  view source on GitHub ↗
(index: number, videoId?: string)

Source from the content-addressed store, hash-verified

109
110// Get HSL color for dynamic theming
111export function getTopicHSLColor(index: number, videoId?: string): string {
112 const colors = videoId ? getShuffledTopicColors(videoId) : TOPIC_COLORS;
113 return colors[index % colors.length];
114}
115
116// Re-export parseTimestamp from timestamp-utils for backward compatibility
117export { parseTimestamp } from './timestamp-utils';

Callers 3

VideoProgressBarFunction · 0.90
TranscriptViewerFunction · 0.90
TopicCardFunction · 0.90

Calls 1

getShuffledTopicColorsFunction · 0.85

Tested by

no test coverage detected