MCPcopy Create free account
hub / github.com/dailydotdev/apps / rgba

Function rgba

packages/shared/src/features/snapshot/snapshotGradient.ts:48–51  ·  view source on GitHub ↗
(
  { r, g, b }: { r: number; g: number; b: number },
  alpha: number,
)

Source from the content-addressed store, hash-verified

46];
47
48const rgba = (
49 { r, g, b }: { r: number; g: number; b: number },
50 alpha: number,
51): string => `rgba(${r}, ${g}, ${b}, ${alpha})`;
52
53export function getSnapshotGradient(seed: string): string {
54 const random = createRandom(seed);

Callers 1

getSnapshotGradientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected