Capítulo 600 de 988

Chapter 600: noiseDisplacement()

Core Idea

_Part of the @remotion/effects package.

Key Concepts

  • Preview
  • Example
  • API
  • center
  • radius
  • strength?
  • seed?
  • grainSize?

Code Examples

export const MyComp: React.FC = () => {
  return (
    <AbsoluteFill>
      <CanvasImage
        src={staticFile('image.png')}
        width={1280}
        height={720}
        fit="cover"
        effects={[
          noiseDisplacement({
            center: [0.55, 0.42],
            radius: 0.18,
            strength: 36,
            seed: 12,
            grainSize: 8,
            passes: 6,
            feather: 0.25,
          }),
        ]}
      />
    </AbsoluteFill>
  );
};
  • What it demonstrates: Usage pattern for noiseDisplacement() from the official docs.

Key Takeaways

  1. Understand preview when working with noiseDisplacement().
  2. Understand example when working with noiseDisplacement().
  3. Understand api when working with noiseDisplacement().
  4. Understand center when working with noiseDisplacement().
  5. Understand radius when working with noiseDisplacement().

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.