Capítulo 822 de 988

Chapter 822: warpPath()

Core Idea

<WarpTextTutorial />

Key Concepts

  • How it works
  • Arguments
  • path
  • fn
  • options
  • interpolationThreshold
  • Credits
  • See also

Code Examples

const fn: WarpPathFn = ({ x, y }) => ({
  x: x + Math.sin(y / 4) * 5,
  y: y,
});

const newPath = warpPath("M 0 0 L 0 100", fn); // M 0 0 L 0.970365514464549 0.78125 L 1.9038320449619508 1.5625 L 2.7649037231526368 2.34375...;
  • What it demonstrates: Usage pattern for warpPath() from the official docs.

Key Takeaways

  1. Understand how it works when working with warpPath().
  2. Understand arguments when working with warpPath().
  3. Understand path when working with warpPath().
  4. Understand fn when working with warpPath().
  5. Understand options when working with warpPath().

Connects To

  • Center Path: related page in the Paths (@remotion/paths) section.
  • cut Path: related page in the Paths (@remotion/paths) section.
  • Evolve Path: related page in the Paths (@remotion/paths) section.