UNPKG

popmotion

Version:

The animator's toolbox

13 lines 384 B
export function animateSync(animation, timeStep = 200, round = true) { const output = []; let step = 0; let done = false; while (!done) { const latest = animation.next(step * timeStep); output.push(round ? Math.round(latest.value) : latest.value); done = latest.done; step++; } return output; } //# sourceMappingURL=utils.js.map