Capítulo 613 de 988

Chapter 613: scanlines()

Core Idea

_Part of the @remotion/effects package.

Key Concepts

  • Preview
  • Example
  • API
  • amount?
  • spacing?
  • thickness?
  • offset?
  • premultiply?

Code Examples

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

  return (
    <AbsoluteFill>
      <Video
        src="https://remotion.media/video.mp4"
        effects={[
          scanlines({
            amount: 0.25,
            spacing: 4,
            thickness: 1,
            offset: frame * 0.5,
          }),
        ]}
      />
    </AbsoluteFill>
  );
};
  • What it demonstrates: Usage pattern for scanlines() from the official docs.

Key Takeaways

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

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.