MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / fOf

Function fOf

packages/cli/src/commands/motionShotLayout.ts:209–209  ·  view source on GitHub ↗
(i: number)

Source from the content-addressed store, hash-verified

207 for (const el of elements) {
208 const last = el.samples.length - 1;
209 const fOf = (i: number) => (last <= 0 ? 0 : i / last);
210 el.samples.forEach((s, i) => (out += ghost(s.q.map(M), M(s.c), s.color, s.opacity, fOf(i))));
211 for (let i = 0; i < last; i++)
212 out += line(M(el.samples[i]!.c), M(el.samples[i + 1]!.c), timeColor(fOf(i)), 3.5, 0.85);

Callers 1

pathBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected