MCPcopy
hub / github.com/kyechan99/capsule-render / generateAutoByTime

Function generateAutoByTime

utils/setting.ts:53–57  ·  view source on GitHub ↗
(queryColor: string, fontColor?: string)

Source from the content-addressed store, hash-verified

51};
52
53export const generateAutoByTime = (queryColor: string, fontColor?: string) => {
54 if (queryColor === "timeAuto") return randomizedByTime(pallete, fontColor);
55 // else 'timeGradient'
56 return randomizedByTime(gradient, fontColor);
57};
58
59export const checkThemeColor = (stats: string) => {
60 return pallete_theme[stats];

Callers 2

constructorFunction · 0.90
color.test.tsFile · 0.90

Calls 1

randomizedByTimeFunction · 0.85

Tested by

no test coverage detected