Ellipse#
Qualified name: manim.mobject.geometry.arc.Ellipse
- class Ellipse(width=2, height=1, **kwargs)[source]#
Bases:
Circle
A circular shape; oval, circle.
- Parameters
width (float) – The horizontal width of the ellipse.
height (float) – The vertical height of the ellipse.
kwargs – Additional arguments to be passed to
Circle
.
Examples
Example: EllipseExample ¶
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 any method of
self
.animation_overrides
color
depth
The depth of the mobject.
fill_color
If there are multiple colors (for gradient) this returns the first one
height
The height of the mobject.
n_points_per_curve
sheen_factor
stroke_color
width
The width of the mobject.