Gear

Qualified name: manim\_pymunk.custom\_mobjects.gear.Gear

class Gear(num_teeth=12, radius=1.0, tooth_height=0.4, width_factor=0.5, roundness=0.05, hole_radius=0.1, **kwargs)[source]

Bases: VMobject

Methods

Attributes

always

Call a method on a mobject every frame.

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.

Parameters:
  • num_teeth (int)

  • radius (float)

  • tooth_height (float)

  • width_factor (float)

  • roundness (float)

  • hole_radius (float)

_original__init__(num_teeth=12, radius=1.0, tooth_height=0.4, width_factor=0.5, roundness=0.05, hole_radius=0.1, **kwargs)

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

Parameters:
  • num_teeth (int)

  • radius (float)

  • tooth_height (float)

  • width_factor (float)

  • roundness (float)

  • hole_radius (float)

animation_overrides = {}