Kind: Function
Source: atloria-monorepo/apps/api/src/collaboration/utils/color.ts
Generates a consistent color for a user based on their ID Uses a hash function to ensure the same user always gets the same color
Signature
tsfunction generateUserColor(userId: string): string
Parameters
| Name | Type |
|---|---|
userId | string |
Returns: string
Was this page helpful?