Back to Remotion

Ellipse

packages/docs/docs/shapes/ellipse.mdx

4.0.499756 B
Original Source

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

Part of the @remotion/shapes package.

Renders an SVG element drawing an ellipse.

Explorer

<Demo type="ellipse" />

Example

tsx
import { Ellipse } from "@remotion/shapes";
import { AbsoluteFill } from "remotion";

export const MyComposition = () => {
  return (
    <AbsoluteFill
      style={{
        backgroundColor: "white",
        justifyContent: "center",
        alignItems: "center",
      }}
    >
      <Ellipse rx={100} ry={50} fill="green" stroke="red" strokeWidth={1} />
    </AbsoluteFill>
  );
};

Props

<ShapeOptions shape="ellipse" all />

See also

<ShapeSeeAlso shape="ellipse"/>