MCPcopy Create free account
hub / github.com/alanagoyal/docbase / getColorForGroup

Function getColorForGroup

utils/group-colors.ts:17–19  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

15const colorPalette = generateColorPalette(22); // Reduced by 2 to account for Founders and Investors groups
16
17export const getColorForGroup = (index: number): string => {
18 return colorPalette[index % colorPalette.length];
19};

Callers 2

handleAddGroupFunction · 0.90
ContactFormFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected