Capítulo 585 de 988

Chapter 585: halftone()

Core Idea

_Part of the @remotion/effects package.

Key Concepts

  • Preview
  • Example
  • API
  • shape?
  • dotSize?
  • dotSpacing?
  • rotation?
  • offsetX?

Code Examples

export const MyComp: React.FC = () => {
  return (
    <AbsoluteFill>
      <Video
        src="https://remotion.media/video.mp4"
        effects={[
          halftone({
            shape: 'circle',
            dotSize: 18,
            dotSpacing: 20,
            rotation: 12,
            dotColor: 'red',
          }),
        ]}
      />
    </AbsoluteFill>
  );
};
  • What it demonstrates: Usage pattern for halftone() from the official docs.

Key Takeaways

  1. Understand preview when working with halftone().
  2. Understand example when working with halftone().
  3. Understand api when working with halftone().
  4. Understand shape? when working with halftone().
  5. Understand dotsize? when working with halftone().

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.