🎥 Make videos programmatically with React
Update evolve-path.ts
Jonny Burgercdc9c2680d86
diff --git a/packages/paths/src/evolve-path.ts b/packages/paths/src/evolve-path.tsindex 6da35fbb9a..07e0039b8a 100644--- a/packages/paths/src/evolve-path.ts+++ b/packages/paths/src/evolve-path.ts@@ -10,6 +10,11 @@ export const evolvePath = (progress: number, path: string) => {const length = getLength(path);if (progress === 0) {+ // Because Remotion has not the same rounding as the browser, the length may be a bit too short.+ // This causes a browser artifact https://github.com/remotion-dev/remotion/issues/3960+ // But any line inbetween length and length * 2 will be invisible.+ // So we just select the middle I guess!+const extendedLength = length * 1.5;return {strokeDasharray: `${extendedLength} ${extendedLength}`,