Capítulo 586 de 988

Chapter 586: halftoneLinearGradient()

Core Idea

_Part of the @remotion/effects package.

Key Concepts

  • Preview
  • Example
  • API
  • firstStopDotSize?
  • secondStopDotSize?
  • firstStopPosition?
  • secondStopPosition?
  • gridSize?

Code Examples

export const MyComp: React.FC = () => {
  return (
    <AbsoluteFill>
      <Solid
        width={1280}
        height={720}
        color="black"
        effects={[
          halftoneLinearGradient({
            firstStopDotSize: 0,
            secondStopDotSize: 42,
            firstStopPosition: [0, 0.5],
            secondStopPosition: [1, 0.5],
            gridSize: 24,
            dotColor: '#0b84f3',
          }),
        ]}
      />
    </AbsoluteFill>
  );
};
  • What it demonstrates: Usage pattern for halftoneLinearGradient() from the official docs.

Key Takeaways

  1. Understand preview when working with halftoneLinearGradient().
  2. Understand example when working with halftoneLinearGradient().
  3. Understand api when working with halftoneLinearGradient().
  4. Understand firststopdotsize? when working with halftoneLinearGradient().
  5. Understand secondstopdotsize? when working with halftoneLinearGradient().

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.