Capítulo 570 de 988

Chapter 570: colorKey()

Core Idea

_Part of the @remotion/effects package.

Key Concepts

  • Preview
  • Example
  • API
  • keyColor?
  • similarity?
  • smoothness?
  • spillSuppression?
  • disabled?

Code Examples

export const MyComp: React.FC = () => {
  return (
    <AbsoluteFill style={{background: '#222'}}>
      <Video
        src="https://remotion.media/greenscreen.mp4"
        effects={[colorKey({keyColor: '#00ff00'})]}
      />
    </AbsoluteFill>
  );
};
  • What it demonstrates: Usage pattern for colorKey() from the official docs.

Key Takeaways

  1. Understand preview when working with colorKey().
  2. Understand example when working with colorKey().
  3. Understand api when working with colorKey().
  4. Understand keycolor? when working with colorKey().
  5. Understand similarity? when working with colorKey().

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.