Capítulo 633 de 988

Chapter 633: zigzag()

Core Idea

_Part of the @remotion/effects package.

Key Concepts

  • Preview
  • Example
  • API
  • colors?
  • direction?
  • thickness?
  • gap?
  • angle?

Code Examples

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

  return (
    <AbsoluteFill>
      <Solid
        width={1280}
        height={720}
        effects={[
          zigzag({
            colors: ['#d7b8ff', 'transparent'],
            direction: 'horizontal',
            thickness: 40,
            gap: 0,
            angle: 0,
            offset: frame * 2,
            amplitude: 40,
            wavelength: 160,
          }),
        ]}
      />
    </AbsoluteFill>
  );
};
  • What it demonstrates: Usage pattern for zigzag() from the official docs.

Key Takeaways

  1. Understand preview when working with zigzag().
  2. Understand example when working with zigzag().
  3. Understand api when working with zigzag().
  4. Understand colors? when working with zigzag().
  5. Understand direction? when working with zigzag().

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.