Capítulo 804 de 988

Chapter 804: evolvePath()

Core Idea

_Part of the @remotion/paths package.

Key Concepts

  • See also

Code Examples

const path = "M 0 0 L 100 0";
const evolution = evolvePath(0.5, path);
console.log(evolution); // { strokeDasharray: '100 100',  strokeDashoffset: 50 }

const element = (
  <path
    d={path}
    strokeDasharray={evolution.strokeDasharray}
    strokeDashoffset={evolution.strokeDashoffset}
  />
);
  • What it demonstrates: Usage pattern for evolvePath() from the official docs.

Key Takeaways

  1. Understand see also when working with evolvePath().

Connects To

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