# AnnularSector#

Qualified name: `manim.mobject.geometry.arc.AnnularSector`

Bases: `Arc`

A sector of an annulus.

Parameters:

• angle (float) – The clockwise angle of the Annular Sector.

• start_angle (float) – The starting clockwise angle of the Annular Sector.

• fill_opacity (float) – The opacity of the color filled in the Annular Sector.

• stroke_width (float) – The stroke width of the Annular Sector.

• color (ParsableManimColor) – The color filled into the Annular Sector.

Examples

Example: AnnularSectorExample

```from manim import *

class AnnularSectorExample(Scene):
def construct(self):
# Changes background color to clearly visualize changes in fill_opacity.
self.camera.background_color = WHITE

# The default parameter start_angle is 0, so the AnnularSector starts from the +x-axis.
s1 = AnnularSector(color=YELLOW).move_to(2 * UL)

# fill_opacity is typically a number > 0 and <= 1. If fill_opacity=0, the AnnularSector is transparent.

# With a negative value for the angle, the AnnularSector is drawn clockwise from the start value.
s4 = AnnularSector(inner_radius=1, outer_radius=1.5, angle=-3 * PI / 2, color=GREEN).move_to(2 * DR)

```
```class AnnularSectorExample(Scene):
def construct(self):
# Changes background color to clearly visualize changes in fill_opacity.
self.camera.background_color = WHITE

# The default parameter start_angle is 0, so the AnnularSector starts from the +x-axis.
s1 = AnnularSector(color=YELLOW).move_to(2 * UL)

# fill_opacity is typically a number > 0 and <= 1. If fill_opacity=0, the AnnularSector is transparent.

# With a negative value for the angle, the AnnularSector is drawn clockwise from the start value.
s4 = AnnularSector(inner_radius=1, outer_radius=1.5, angle=-3 * PI / 2, color=GREEN).move_to(2 * DR)

```

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.

Initialize self. See help(type(self)) for accurate signature.

Parameters:

• angle (float) –

• start_angle (float) –

• fill_opacity (float) –

• stroke_width (float) –

• color (Union[ManimColor, int, str, Tuple[int, int, int], Tuple[float, float, float], Tuple[int, int, int, int], Tuple[float, float, float, float], ndarray[Any, dtype[int64]], ndarray[Any, dtype[float64]]]) –

Return type:

None

generate_points()[source]#

Initializes `points` and therefore the shape.

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

Return type:

None

init_points()#

Initializes `points` and therefore the shape.

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

Return type:

None