Capítulo 590 de 988

Chapter 590: lightLeak()

Core Idea

_Part of the @remotion/effects package.

Key Concepts

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

Code Examples

export const MyComp: React.FC = () => {
  const frame = useCurrentFrame();

  return (
    <CanvasImage
      src={staticFile('image.png')}
      width={1280}
      height={720}
      fit="cover"
      effects={[
        lightLeak({
          seed: 3,
          hueShift: 30,
          progress: interpolate(frame, [0, 30], [0, 1], {
            extrapolateLeft: 'clamp',
            extrapolateRight: 'clamp',
          }),
        }),
      ]}
    />
  );
};
  • 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

  • Animated Emoji: related page in the Effects Library section.
  • get Available Emoji: related page in the Effects Library section.
  • api: related page in the Effects Library section.