Capítulo 596 de 988

Chapter 596: lines()

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={[
          lines({
            colors: ['#dff4ff', '#7cc6ff'],
            direction: 'horizontal',
            thickness: 40,
            gap: 24,
            angle: 20,
            offset: frame * 2,
          }),
        ]}
      />
    </AbsoluteFill>
  );
};
  • What it demonstrates: Usage pattern for lines() from the official docs.

Key Takeaways

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

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.