Skip to main content

makeEllipse()

import {MakeShapeSeeAlso, ShapeOptions, MakeShapeReturnType} from "../../components/shapes/shapes-info"

Part of the @remotion/shapes package.

Generates an ellipse SVG path.

Example

ellipse.ts
tsx
import { makeEllipse } from "@remotion/shapes";
 
const { path, width, height, transformOrigin } = makeEllipse({
rx: 100,
ry: 50,
});
 
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'
ellipse.ts
tsx
import { makeEllipse } from "@remotion/shapes";
 
const { path, width, height, transformOrigin } = makeEllipse({
rx: 100,
ry: 50,
});
 
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

Return type

See also