manim.mobject.geometry.Ellipse

class Ellipse(width=2, height=1, **kwargs)[source]

Bases: manim.mobject.geometry.Circle

A circular shape; oval, circle.

Parameters
  • width (float, optional) – The horizontal width of the ellipse.

  • height (float, optional) – The vertical height of the ellipse.

  • kwargs (Any) – Additional arguments to be passed to Circle

Examples

Example: EllipseExample

../_images/EllipseExample-1.png
from manim import *

class EllipseExample(Scene):
    def construct(self):
        ellipse_1 = Ellipse(width=2.0, height=4.0, color=BLUE_B)
        ellipse_2 = Ellipse(width=4.0, height=1.0, color=BLUE_D)
        ellipse_group = Group(ellipse_1,ellipse_2).arrange(buff=1)
        self.add(ellipse_group)

Methods

Attributes

animate

Used to animate the application of a method.

depth

The depth of the mobject.

height

The height of the mobject.

width

The width of the mobject.