Capítulo 601 de 988

Chapter 601: outline()

Core Idea

_Part of the @remotion/effects package.

Key Concepts

  • Preview
  • Example
  • API
  • width?
  • edgeSimplification?
  • color?
  • opacity?
  • outlineOnly?

Code Examples

export const MyComp: React.FC = () => {
  return (
    <AbsoluteFill style={{backgroundColor: '#15171e'}}>
      <Video
        src="https://remotion.media/greenscreen.mp4"
        effects={[
          colorKey({similarity: 0.45}),
          outline({width: 12, edgeSimplification: 12, color: '#00ffff'}),
        ]}
      />
    </AbsoluteFill>
  );
};
  • What it demonstrates: Usage pattern for outline() from the official docs.

Key Takeaways

  1. Understand preview when working with outline().
  2. Understand example when working with outline().
  3. Understand api when working with outline().
  4. Understand width? when working with outline().
  5. Understand edgesimplification? when working with outline().

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.