Skip to content

getUserColorRGB

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/web/src/lib/user-colors.ts

Get an RGB representation of a user color Useful for creating variations (e.g., with different opacity)

Signature

ts
function getUserColorRGB(userId: string): { r: number; g: number; b: number }

Parameters

NameType
userIdstring

Returns: { r: number; g: number; b: number }

Was this page helpful?

Download as PDF