Annulus#

Qualified name: manim.mobject.geometry.arc.Annulus

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

Bases: Circle

Region between two concentric Circles.

Parameters
  • inner_radius (float | None) – The radius of the inner Circle.

  • outer_radius (float | None) – The radius of the outer Circle.

  • kwargs – 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 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.

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.