🎥 Make videos programmatically with React
Update LightLeak.tsx
JonnyBurger3cc2b59fc975
diff --git a/packages/light-leaks/src/LightLeak.tsx b/packages/light-leaks/src/LightLeak.tsxindex 706b646b1b..20825caf2b 100644--- a/packages/light-leaks/src/LightLeak.tsx+++ b/packages/light-leaks/src/LightLeak.tsx@@ -201,7 +201,8 @@ const LightLeakCanvas: React.FC<{hueShiftLoc,} = ctx;- const normalized = durationInFrames <= 1 ? 0 : frame / (durationInFrames - 1);+ const normalized =+ durationInFrames <= 1 ? 0 : frame / (durationInFrames - 1);const evolveProgress = Math.min(1, normalized * 2);const retractProgress = Math.max(0, normalized * 2 - 1);