🎥 Make videos programmatically with React
star item
Jonny Burgerbd6affba90b5
diff --git a/packages/docs/docs/shapes/make-star.md b/packages/docs/docs/shapes/make-star.mdnew file mode 100644index 0000000000..c3acf09b96--- /dev/null+++ b/packages/docs/docs/shapes/make-star.md@@ -0,0 +1,41 @@+---+title: makeStar()+crumb: "@remotion/shapes"+---++import {MakeShapeSeeAlso, ShapeOptions, MakeShapeReturnType} from "../../components/shapes/shapes-info"++_Part of the [`@remotion/shapes`](/docs/shapes) package._++Generates an star SVG path.++## Example++```tsx twoslash title="star.ts"+import { makeStar } from "@remotion/shapes";++const { path, width, height, transformOrigin } = makeStar({+ innerRadius: 200,+ outerRadius: 150,+ points: 5,+ height: 200,+ width: 200,+});++console.log(path); // M 100 0 a 100 100 0 1 0 1 0+console.log(width); // 200+console.log(height); // 100+console.log(transformOrigin); // '100 50'+```++## Arguments++<ShapeOptions shape="star"/>++## Return type++<MakeShapeReturnType shape="star"/>++## See also++<MakeShapeSeeAlso shape="star"/>diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex 367b5ab5a1..a3685042c4 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -303,6 +303,7 @@ module.exports = {"shapes/make-triangle","shapes/make-circle","shapes/make-ellipse",+ "shapes/make-star",],},],