Capítulo 816 de 988

Chapter 816: reduceInstructions()

Core Idea

_Part of the @remotion/paths package. Available from v3.

Key Concepts

  • ReducedInstruction type
  • See also

Code Examples

const simplified: ReducedInstruction[] = reduceInstructions([
  { type: "m", dx: 10, dy: 10 },
  { type: "h", dx: 100 },
]);

/*
  [
    {type: 'M', x: 10, y: 10},
    {type: 'L', x: 110, y: 10},
  ]
*/
  • What it demonstrates: Usage pattern for reduceInstructions() from the official docs.

Key Takeaways

  1. Understand reducedinstruction type when working with reduceInstructions().
  2. Understand see also when working with reduceInstructions().

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.