Capítulo 609 de 988

Chapter 609: rings()

Core Idea

_Part of the @remotion/effects package.

Key Concepts

  • Preview
  • Example
  • API
  • colors?
  • center?
  • thickness?
  • gap?
  • offset?

Code Examples

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

  return (
    <AbsoluteFill>
      <Solid
        width={1280}
        height={720}
        effects={[
          rings({
            colors: ['#9fd6ff', 'transparent'],
            center: [0.5, 0.5],
            thickness: 40,
            gap: 0,
            offset: frame * 2,
          }),
        ]}
      />
    </AbsoluteFill>
  );
};
  • What it demonstrates: Usage pattern for rings() from the official docs.

Key Takeaways

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

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.