manim.mobject.geometry.Annulus

class Annulus(inner_radius=1, outer_radius=2, fill_opacity=1, stroke_width=0, color='#FFFFFF', mark_paths_closed=False, **kwargs)[source]

Bases: manim.mobject.geometry.Circle

Region between two concentric Circles.

Parameters
  • inner_radius (Optional[float]) – The radius of the inner Circle.

  • outer_radius (Optional[float]) – The radius of the outer Circle.

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

Examples

Example: AnnulusExample

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

class AnnulusExample(Scene):
    def construct(self):
        annulus_1 = Annulus(inner_radius=0.5, outer_radius=1).shift(UP)
        annulus_2 = Annulus(inner_radius=0.3, outer_radius=0.6, color=RED).next_to(annulus_1, DOWN)
        self.add(annulus_1, annulus_2)

Methods

generate_points

Initializes points and therefore the shape.

init_points

Initializes points and therefore the shape.

Attributes

animate

Used to animate the application of a method.

animation_overrides

depth

The depth of the mobject.

height

The height of the mobject.

width

The width of the mobject.

generate_points()[source]

Initializes points and therefore the shape.

Gets called upon creation. This is an empty method that can be implemented by subclasses.

init_points()

Initializes points and therefore the shape.

Gets called upon creation. This is an empty method that can be implemented by subclasses.