Capítulo 567 de 988

Chapter 567: checkerboard()

Core Idea

_Part of the @remotion/effects package.

Key Concepts

  • Preview
  • Example
  • API
  • colors?
  • cellSize?
  • gap?
  • angle?
  • offsetX?

Code Examples

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

  return (
    <AbsoluteFill>
      <Solid
        width={1280}
        height={720}
        effects={[
          checkerboard({
            colors: ['#dff4ff', '#7cc6ff'],
            cellSize: 80,
            gap: 0,
            angle: 15,
            offsetX: frame * 2,
            offsetY: frame,
          }),
        ]}
      />
    </AbsoluteFill>
  );
};
  • What it demonstrates: Usage pattern for checkerboard() from the official docs.

Key Takeaways

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

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.