Capítulo 584 de 988

Chapter 584: gridlines()

Core Idea

_Part of the @remotion/effects package.

Key Concepts

  • Preview
  • Example
  • API
  • gridSize?
  • lineWidth?
  • lineColor?
  • backgroundColor?
  • rotation?

Code Examples

export const MyComp: React.FC = () => {
  return (
    <AbsoluteFill>
      <Solid
        width={1280}
        height={720}
        color="#101828"
        effects={[
          gridlines({
            gridSize: 72,
            lineWidth: 3,
            lineColor: '#7cc6ff',
          }),
        ]}
      />
    </AbsoluteFill>
  );
};
  • What it demonstrates: Usage pattern for gridlines() from the official docs.

Key Takeaways

  1. Understand preview when working with gridlines().
  2. Understand example when working with gridlines().
  3. Understand api when working with gridlines().
  4. Understand gridsize? when working with gridlines().
  5. Understand linewidth? when working with gridlines().

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.