Capítulo 789 de 988

Chapter 789: makeHeart()

Core Idea

_available from v4. 0.

Key Concepts

  • Example
  • Arguments
  • Return type
  • See also

Code Examples

const {path, width, height, transformOrigin, instructions} = makeHeart({
  height: 100,
});

console.log(path); // M 100 120 C 40 110 20 70 60 60 C 90 40 110 40 140 60 C 180 70 160 110 100 120 Z
console.log(width); // 200
console.log(height); // 160
console.log(transformOrigin); // "100 80"
console.log(instructions); // Instruction[]
  • What it demonstrates: Usage pattern for makeHeart() from the official docs.

Key Takeaways

  1. Understand example when working with makeHeart().
  2. Understand arguments when working with makeHeart().
  3. Understand return type when working with makeHeart().
  4. Understand see also when working with makeHeart().

Connects To

  • Arrow: related page in the Shapes (@remotion/shapes) section.
  • Callout: related page in the Shapes (@remotion/shapes) section.
  • Circle: related page in the Shapes (@remotion/shapes) section.