Capítulo 792 de 988

Chapter 792: makeRect()

Core Idea

_Part of the @remotion/shapes package.

Key Concepts

  • Example
  • Arguments
  • Return type
  • See also

Code Examples

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

console.log(path); // M 0 0 l 100 0 l 0 100 l -100 0 Z
console.log(width); // 100
console.log(height); // 100
console.log(transformOrigin); // '50 50'
  • What it demonstrates: Usage pattern for makeRect() from the official docs.

Key Takeaways

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

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.