MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / animFrame

Function animFrame

src/ui/shimmer-worker.ts:40–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38const startTime: number = workerData.startTime;
39
40function animFrame(): number {
41 return Math.floor((Date.now() - startTime) / ANIM_INTERVAL);
42}
43
44function lerp(a: number, b: number, t: number): number {
45 return Math.round(a + (b - a) * t);

Callers 1

renderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected