The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.
TypeScript agent-skillsagentic-aiai-agentsai-videobyokclaude-codecodexdeepseek-harnessdsh-plugingenerative-ailocal-firstmcpmotionmotion-graphicsmultimodalopenmotionreverse-engineeringvideo-editingvideo-generationworkbuddy
/** Round to 3 decimal places (millisecond precision for GSAP values). */
export function roundTo3(val: number): number {
return Math.round(val * 1000) / 1000;
}
/** Whole CSS px: GSAP parses a -50% translate against the integer offsetWidth/Height. */
export function roundToLayoutPx(val: number): number {
return Math.round(val);
}
export function roundToLayoutSize(size: { width: number; height: number }) {
return {
width: roundToLayoutPx(Math.max(1, size.width)),
height: roundToLayoutPx(Math.max(1, size.height)),
};
}
/** Round to 2 decimal places (centisecond precision for timeline values). */
export function roundToCenti(val: number): number {
return Math.round(val * 100) / 100;
}