Chapter 795: makeTriangle()
Core Idea
_Part of the @remotion/shapes package.
Key Concepts
- Example
- Arguments
- Return type
- Credits
- See also
Code Examples
const { path, width, height, transformOrigin } = makeTriangle({
length: 100,
direction: "right",
});
console.log(path); // M 0 0 L 0 100 L 86.60254037844386 50 z
console.log(width); // 86.60254037844386
console.log(height); // 100
console.log(transformOrigin); // '28.867513459481287 50'
- What it demonstrates: Usage pattern for makeTriangle() from the official docs.
Key Takeaways
- Understand example when working with makeTriangle().
- Understand arguments when working with makeTriangle().
- Understand return type when working with makeTriangle().
- Understand credits when working with makeTriangle().
- Understand see also when working with makeTriangle().
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.