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

Function stripCells

packages/cli/src/commands/motionShotLayout.ts:135–139  ·  view source on GitHub ↗
(n: number, width: number, height: number)

Source from the content-addressed store, hash-verified

133
134/** Grid geometry for the filmstrip layout. */
135export function stripCells(n: number, width: number, height: number) {
136 const cols = n <= 5 ? Math.max(1, n) : Math.ceil(Math.sqrt(n));
137 const rows = Math.ceil(n / cols);
138 return { cols, rows, cellW: width / cols, cellH: height / rows };
139}
140
141const timeColor = (f: number) => `hsl(${190 + f * 150} 90% 65%)`;
142

Callers 2

stripBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected