Capítulo 610 de 988

Chapter 610: roughenEdges()

Core Idea

_Part of the @remotion/effects package.

Key Concepts

  • Preview
  • Example
  • API
  • amount?
  • border?
  • scale?
  • seed?
  • disabled?

Code Examples

export const MyComp: React.FC = () => {
  return (
    <AbsoluteFill>
      <CanvasImage
        src={staticFile('logo-with-alpha.png')}
        width={1280}
        height={720}
        fit="contain"
        effects={[
          roughenEdges({
            border: 26.5,
            scale: 0.07,
            seed: 231.2,
          }),
        ]}
      />
    </AbsoluteFill>
  );
};
  • What it demonstrates: Usage pattern for roughenEdges() from the official docs.

Key Takeaways

  1. Understand preview when working with roughenEdges().
  2. Understand example when working with roughenEdges().
  3. Understand api when working with roughenEdges().
  4. Understand amount? when working with roughenEdges().
  5. Understand border? when working with roughenEdges().

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.