Capítulo 914 de 988

Chapter 914: lightLeak()

Core Idea

:::info Deprecated @remotion/light-leaks is deprecated and will no longer be published starting with Remotion 5. 0.

Key Concepts

  • Preview
  • Example
  • API
  • seed?
  • hueShift?
  • progress?
  • disabled?
  • Requirements

Code Examples

export const MyComp: React.FC = () => {
  const frame = useCurrentFrame();
  const progress = interpolate(frame, [0, 30], [0, 1], {
    extrapolateLeft: 'clamp',
    extrapolateRight: 'clamp',
  });

  return (
    <CanvasImage
      src={staticFile('image.png')}
      width={1280}
      height={720}
      fit="cover"
      effects={[
        lightLeak({
          seed: 3,
          hueShift: 30,
          progress,
        }),
      ]}
    />
  );
};
  • What it demonstrates: Usage pattern for lightLeak() from the official docs.

Key Takeaways

  1. Understand preview when working with lightLeak().
  2. Understand example when working with lightLeak().
  3. Understand api when working with lightLeak().
  4. Understand seed? when working with lightLeak().
  5. Understand hueshift? when working with lightLeak().

Connects To

  • api: related page in the Light Leaks (@remotion/light-leaks) section.
  • Light Leak: related page in the Light Leaks (@remotion/light-leaks) section.