MCPcopy Index your code
hub / github.com/vercel/avatar / hue

Function hue

utils/gradient.ts:12–15  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

10}
11
12async function hue(str: string): Promise<number> {
13 const n = await hash(str);
14 return n % 360;
15}
16
17export async function generateGradient(username: string) {
18 const h = await hue(username);

Callers 1

generateGradientFunction · 0.85

Calls 1

hashFunction · 0.85

Tested by

no test coverage detected